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 "items" state is null and that you're trying to call the filter method on it. This error occurs because the JSON.parse method returns null if there is no data stored in local storage.
To resolve this issue, you can check if the value of items is null and set it to an empty array if it is: