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);
|
onChange(formattedSelectedKandangs);
|
||||||
|
} else {
|
||||||
|
onChange([]);
|
||||||
}
|
}
|
||||||
}, [rowSelection]);
|
}, [rowSelection]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setRowSelection({});
|
if (
|
||||||
}, [locationId]);
|
selectedKandangs.length === 0 &&
|
||||||
|
Object.keys(rowSelection).length !== 0
|
||||||
|
) {
|
||||||
|
setRowSelection({});
|
||||||
|
}
|
||||||
|
}, [selectedKandangs]);
|
||||||
|
|
||||||
// track sorting
|
// track sorting
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user