supabase-community / svelte-kanban

MIT License
254 stars 65 forks source link

Live demo is not working #7

Open csaron92 opened 7 months ago

csaron92 commented 7 months ago

Bug report

Describe the bug

The live demo let me log in, but after adding the board, I got a blank screen. In the URL I can see the board ID, but not any content. Going back to the main URL (and after a refresh) I see the "Untitled board" and I can add another one (same result).

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to Live demo link
  2. Log in with magic link
  3. Add a new board
  4. See error

System information

janto commented 6 months ago

A request for https://SOME_ID.supabase.co/rest/v1/boards?select=id%2Ctitle%2Clists%28id%2Ctitle%2Cposition%2Ccards%28id%2Cdescription%2Cposition%29%29&id=eq.BOARD_ID&order=position.asc.nullslast&%22lists%22.order=position.asc.nullslast&%22lists.cards%22.order=position.asc.nullslast responds with status 400

{
    "code": "PGRST108",
    "details": null,
    "hint": "Verify that 'lists.cards' is included in the 'select' query parameter.",
    "message": "'lists.cards' is not an embedded resource in this request"
}

Console:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'lists')