mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore(FE-188,193): adjust ExpenseKandangsTable component
This commit is contained in:
@@ -145,12 +145,19 @@ const ExpenseKandangsTable = ({
|
||||
);
|
||||
|
||||
onChange(formattedSelectedKandangs);
|
||||
} else {
|
||||
onChange([]);
|
||||
}
|
||||
}, [rowSelection]);
|
||||
|
||||
useEffect(() => {
|
||||
setRowSelection({});
|
||||
}, [locationId]);
|
||||
if (
|
||||
selectedKandangs.length === 0 &&
|
||||
Object.keys(rowSelection).length !== 0
|
||||
) {
|
||||
setRowSelection({});
|
||||
}
|
||||
}, [selectedKandangs]);
|
||||
|
||||
// track sorting
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user