Skip to content

Commit

Permalink
fix: remove select multiple row
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimthean committed Apr 7, 2024
1 parent fbc6ed3 commit 4cf0e1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/query-result-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion src/components/tabs/table-data-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 4cf0e1a

Please sign in to comment.