todoist-focus-mode icon indicating copy to clipboard operation
todoist-focus-mode copied to clipboard

JSON.filter is not a function

Open byoriolserra opened this issue 2 years ago • 3 comments
trafficstars

When opening the app on the same Arc Browser (Chromium) I had logged in a few days ago, the following error is displayed.

Screenshot 2022-11-28 at 4 02 33 PM

I have logged in on Chrome, where I hadn't previously opened the app yet, and it works correctly.

byoriolserra avatar Nov 28 '22 15:11 byoriolserra

I am guessing it has to do with following line of code: https://github.com/selfire1/todoist-focus-mode/blob/78052aee033c5c60aa3bebd3cc8de6b71b55fc51/netlify/functions/dynamic/index.js#L30

byoriolserra avatar Nov 28 '22 15:11 byoriolserra

After having reset the URL to just https://flowist.app/, the app behaves properly. Maybe I had favorited the tab with a specific querystring that is no longer valid.

byoriolserra avatar Nov 28 '22 15:11 byoriolserra

I saved/bookmarked my URLs and got this error with them as well. After reloading the main page and logging back in again, they work.

So, I suspect this error has to do with when you try to access a filter via a logged-out state (or some sort of expired session cookie or similar) - it doesn't properly handle being logged out (it should log you back in again).

stacksjb avatar Jan 30 '23 14:01 stacksjb

Should be fixed now.

selfire1 avatar Jun 01 '24 06:06 selfire1