Replies: 2 comments 3 replies
-
My workaround for now is to just catch the error when calling the function but that's not really neat from my perspective. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Are you using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Everyone
I'm using Directus to collect answers to a form in my nuxt application.
Since I don't want to expose all form answers via the API, I only allow write access to the public.
Now comes the problem: Directus creates the entry perfectly but answers with a 204 if reading is not permitted from the API. This means, Nuxt throws
TypeError: items is undefined
.Can you help me how to catch this properly without rewriting the function itself?
Beta Was this translation helpful? Give feedback.
All reactions