diff --git a/.changeset/lazy-bananas-tap.md b/.changeset/lazy-bananas-tap.md new file mode 100644 index 00000000..862bf797 --- /dev/null +++ b/.changeset/lazy-bananas-tap.md @@ -0,0 +1,3 @@ +--- +"@supabase-cache-helpers/postgrest-core": patch +--- diff --git a/packages/postgrest-core/src/lib/parse-select-param.ts b/packages/postgrest-core/src/lib/parse-select-param.ts index 12d7760c..ab7bb571 100644 --- a/packages/postgrest-core/src/lib/parse-select-param.ts +++ b/packages/postgrest-core/src/lib/parse-select-param.ts @@ -14,8 +14,12 @@ export const parseSelectParam = (s: string, currentPath?: Path): Path[] => { '2': 'selectedColumns', '3': null, }, - }).map(item => { - if (item.name === 'tableName' && item.value && !item.value.startsWith(',')) { + }).map((item) => { + if ( + item.name === 'tableName' && + item.value && + !item.value.startsWith(',') + ) { item.value = ',' + item.value; } return item;