@@ -23,7 +23,6 @@ import { getRoute } from '@app-builder/utils/routes';
2323import { fromUUIDtoSUUID } from '@app-builder/utils/short-uuid' ;
2424import { useEffect , useMemo , useRef } from 'react' ;
2525import { useTranslation } from 'react-i18next' ;
26- import * as R from 'remeda' ;
2726import { omit } from 'remeda' ;
2827import shortUUID from 'short-uuid' ;
2928import { Button , cn } from 'ui-design-system' ;
@@ -62,14 +61,8 @@ export const InboxPage = ({
6261 const { orgUsers } = useOrganizationUsers ( ) ;
6362
6463 const excludedFilters = ! inboxId ? [ 'excludeAssigned' ] : undefined ;
65- const {
66- hasSelectedRows,
67- rowSelection,
68- getSelectedRows,
69- selectionProps,
70- tableProps,
71- setRowSelection,
72- } = useListSelection < Case > ( cases , ( row ) => row . id ) ;
64+ const { hasSelectedRows, rowSelection, getSelectedRows, selectionProps, tableProps } =
65+ useListSelection < Case > ( cases , ( row ) => row . id ) ;
7366 const massUpdateCasesMutation = useMassUpdateCasesMutation ( ) ;
7467
7568 const paginationSentinelRef = useRef < HTMLDivElement > ( null ) ;
@@ -87,7 +80,6 @@ export const InboxPage = ({
8780 const onMassUpdateCases : MassUpdateCasesFn = ( params ) => {
8881 const selectedCaseIds = getSelectedRows ( ) . map ( ( row ) => row . id ) ;
8982 massUpdateCasesMutation . mutateAsync ( { caseIds : selectedCaseIds , ...params } ) . then ( ( res ) => {
90- setRowSelection ( ( rows ) => R . omit ( rows , selectedCaseIds ) ) ;
9183 revalidate ( ) ;
9284 } ) ;
9385 } ;
0 commit comments