Error Select Supabase <0

I get this error when the select count with filters is less than 1 = 0. I want to check if the result is less than 1 with true/false

Error at Object.select (https://cdn.weweb.io/components/f9ef41c3-1c53-4857-855b-f2f6a40b7186/29660e1c-dd44-491c-8053-f233b75e9ec0/dist/manager.js:1:230714) at async S (https://editor-cdn.weweb.io/public/js/index.eab04a57.js:1:434788)"

What’s the response of action result? Are you doing a count?
Also, I guess <1 or == 0 count would be better?

First I tried to handle the Array, but also if the filtered rows are less than 0 I get the error. Than I changed to counting the rows in the Action but same error


Okay now its working
Thanks @Kawwl

1 Like