You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue was that userPermissions.permissions was already an array of strings, so I unintentionally wrapped it in another array. It took me a while to debug and realize the data type was incorrect, but I didn't get any warnings or errors to help catch this mistake.
Is there a way to use generics or another approach to prevent this type of mistake in the future?
The text was updated successfully, but these errors were encountered:
Ran into a stupid mistake, I set the user as follow:
correct way:
The issue was that userPermissions.permissions was already an array of strings, so I unintentionally wrapped it in another array. It took me a while to debug and realize the data type was incorrect, but I didn't get any warnings or errors to help catch this mistake.
Is there a way to use generics or another approach to prevent this type of mistake in the future?
The text was updated successfully, but these errors were encountered: