Skip to content

Commit

Permalink
chore: add changeset and format
Browse files Browse the repository at this point in the history
  • Loading branch information
sultson committed Jul 13, 2024
1 parent 049dc8f commit 6eadac5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changeset/lazy-bananas-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
"@supabase-cache-helpers/postgrest-core": patch
---
8 changes: 6 additions & 2 deletions packages/postgrest-core/src/lib/parse-select-param.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6eadac5

Please sign in to comment.