diff --git a/src/components/table-data.tsx b/src/components/table-data.tsx index b8c1fa6..7f9ee51 100644 --- a/src/components/table-data.tsx +++ b/src/components/table-data.tsx @@ -122,7 +122,6 @@ export default function DBTableComponent({ tableName, tableSchemas }: DBTableComponentProps) { - console.log("DEBUG: columns", columns, typeof columns); const tableHead = useMemo( () => ( diff --git a/src/store/useSQLiteStore.ts b/src/store/useSQLiteStore.ts index f86ebd0..882ab33 100644 --- a/src/store/useSQLiteStore.ts +++ b/src/store/useSQLiteStore.ts @@ -16,7 +16,6 @@ interface SQLiteState { setQueryError: (value: string | null) => void; setTables: (tables: { name: string; count: number }[]) => void; setSelectedTable: (value: string) => void; - setTableSchemas: (schemas: TableInfo) => void; rowPerPageOrAuto: number | "auto"; setRowPerPageOrAuto: (value: number | "auto") => void; customQuery: string; @@ -24,7 +23,6 @@ interface SQLiteState { isCustomQuery: boolean; setIsCustomQuery: (value: boolean) => void; queryHestory: string[]; - setQueryHestory: (value: string[]) => void; unShiftToQueryHestory: (value: string) => void; expandPage: boolean; setExpandPage: (value: boolean) => void; @@ -97,7 +95,6 @@ const initializeStore = create((set, get) => ({ setQueryError: (value: string | null) => set({ queryError: value }), setTables: (tables: { name: string; count: number }[]) => set({ tables }), setSelectedTable: (value: string) => set({ selectedTable: value }), - setTableSchemas: (schemas: TableInfo) => set({ tableSchemas: schemas }), setRowPerPageOrAuto: (value: number | "auto") => set({ rowPerPageOrAuto: value }), @@ -106,7 +103,6 @@ const initializeStore = create((set, get) => ({ setCustomQuery: (value: string) => set({ customQuery: value }), queryHestory: [], - setQueryHestory: (value: string[]) => set({ queryHestory: value }), unShiftToQueryHestory: (value: string) => set((state) => ({ queryHestory: [value, ...state.queryHestory] })),