here we go again

This commit is contained in:
Joshen Lim committed 2025-09-19 16:47:14 +07:00
1 parent dfae842bc6
commit 35cf4d9bc0
1 file changed
+12 -1
+12 -1
View File
@@ -163,7 +163,18 @@ export const createTableEditorTableState = ({
export type TableEditorTableState = ReturnType<typeof createTableEditorTableState>
export const TableEditorTableStateContext = createContext<TableEditorTableState>(proxy({} as any))
const DEFAULT_STATE_CONFIG = {
projectRef: '',
table: undefined as any,
editable: undefined,
onAddColumn: () => {},
onExpandJSONEditor: () => {},
onExpandTextEditor: () => {},
}
export const TableEditorTableStateContext = createContext<TableEditorTableState>(
createTableEditorTableState(DEFAULT_STATE_CONFIG)
)
type TableEditorTableStateContextProviderProps = Omit<
Parameters<typeof createTableEditorTableState>[0],