Skip to content

Commit

Permalink
make it more stable
Browse files Browse the repository at this point in the history
Signed-off-by: farodin91 <[email protected]>
  • Loading branch information
farodin91 committed Nov 22, 2024
1 parent 2bea11e commit dbd5e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/common/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default function Table<RowItem extends Record<string, any>>({
positionActionsColumn: 'last',
renderToolbarInternalActions: table => {
const isSomeRowsSelected =
tableProps.enableRowSelection && table.table.getIsSomeRowsSelected();
tableProps.enableRowSelection && table.table.getSelectedRowModel().rows.length !== 0;
if (isSomeRowsSelected) {
const renderRowSelectionToolbar = tableProps.renderRowSelectionToolbar;
if (renderRowSelectionToolbar !== undefined) {
Expand Down

0 comments on commit dbd5e96

Please sign in to comment.