diff --git a/src/components/query-result-table.tsx b/src/components/query-result-table.tsx index 21fee685..33260762 100644 --- a/src/components/query-result-table.tsx +++ b/src/components/query-result-table.tsx @@ -404,7 +404,9 @@ export default function ResultTable({ title: "Delete selected row(s)", icon: LucideTrash2, onClick: () => { - data.removeRow(); + data.getSelectedRowIndex().forEach((index) => { + data.removeRow(index); + }); }, }, ])(event); diff --git a/src/components/tabs/table-data-tab.tsx b/src/components/tabs/table-data-tab.tsx index 59b26a00..9af4f3d8 100644 --- a/src/components/tabs/table-data-tab.tsx +++ b/src/components/tabs/table-data-tab.tsx @@ -136,7 +136,9 @@ export default function TableDataWindow({ tableName }: TableDataContentProps) { const onRemoveRow = useCallback(() => { if (data) { - data.removeRow(); + data.getSelectedRowIndex().forEach((index) => { + data.removeRow(index); + }); } }, [data]);