Skip to content

Commit 011f6c3

Browse files
joshenlimjordienr
andauthored
Fix Table Editor not identifying truncated array column values properly (supabase#37683)
* Fix Table Editor not identifying truncated array column values properly * Add comment * update tests * Fix TS issues and shift test file to beside the file its testing * Fix tests --------- Co-authored-by: Jordi Enric <[email protected]>
1 parent cab0585 commit 011f6c3

File tree

6 files changed

+730
-242
lines changed

6 files changed

+730
-242
lines changed

apps/studio/components/grid/components/editor/JsonEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({
5252
onRowChange,
5353
onExpandEditor,
5454
}: JsonEditorProps<TRow, TSummaryRow>) => {
55-
const snap = useTableEditorTableStateSnapshot()
5655
const { id: _id } = useParams()
5756
const id = _id ? Number(_id) : undefined
5857
const { data: project } = useSelectedProjectQuery()
58+
const snap = useTableEditorTableStateSnapshot()
5959

6060
const { data: selectedTable } = useTableEditorQuery({
6161
projectRef: project?.ref,

0 commit comments

Comments
 (0)