Skip to content

Commit

Permalink
Merge pull request #417 from psteinroe/fix/flatten-import
Browse files Browse the repository at this point in the history
fix: flatten import
  • Loading branch information
psteinroe committed Mar 18, 2024
2 parents 6ac8fc9 + 165ad0c commit 3611617
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-flowers-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@supabase-cache-helpers/postgrest-core": patch
---

fix: flatten import
4 changes: 2 additions & 2 deletions packages/postgrest-core/src/filter/denormalize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unflatten } from 'flat';
import flat from 'flat';

import {
groupPathsRecursive,
Expand Down Expand Up @@ -46,7 +46,7 @@ export const denormalize = <R extends Record<string, unknown>>(
{},
);
if (Object.keys(jsonValue).length > 0) {
value = unflatten(jsonValue);
value = flat.unflatten(jsonValue);
}
}
if (typeof value === 'undefined') {
Expand Down

0 comments on commit 3611617

Please sign in to comment.