Skip to content

Commit 4723c1a

Browse files
atrakhConvex, Inc.
authored andcommitted
dashboard: fix typing issue with clear and delete table (#34645)
GitOrigin-RevId: 9a0ec8da03f659c0553bc8af8a094f4bc1262d5d
1 parent ab883a2 commit 4723c1a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

npm-packages/dashboard-common/src/features/data/components/DataContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ export function DataContent({
155155
addDocuments: (table, docs) => addDocuments(table, docs),
156156
patchFields: (table, rowIds, fields) => patchFields(table, rowIds, fields),
157157
clearSelectedRows,
158-
clearTable: (cursor) => clearTable(tableName, cursor),
158+
clearTable,
159159
deleteRows: (rowIds) => deleteRows(rowIds),
160-
deleteTable: () => deleteTable(tableName),
160+
deleteTable,
161161
isProd,
162162
numRows: numRowsInTable,
163163
tableName,

npm-packages/dashboard-common/src/features/data/lib/useDataToolbarActions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ export function useDataToolbarActions({
3232
rowIds: Set<string> | "all",
3333
fields: GenericDocument,
3434
) => Promise<void>;
35-
deleteTable: (tableName: string) => Promise<void>;
35+
deleteTable: () => Promise<void>;
3636
clearTable: (
37-
tableName: string,
3837
cursor: Cursor | null,
3938
) => Promise<{ continueCursor: Cursor; deleted: number; hasMore: boolean }>;
4039
deleteRows: (rowIds: Set<string>) => Promise<void>;

0 commit comments

Comments
 (0)