Commit 7caea5a8 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

Fix: "page is undefined"

parent 9112b2e9
......@@ -37,7 +37,10 @@ const AccessionTable = ({ accessions, loadData, onSelectedModified, noRedirect }
// callback
const loadDataInternal = React.useCallback((filter: string | AccessionFilter, pageR: IPageRequest) => {
return loadData(filter, pageR)
.then(() => setSelected({selectedUUIDs: [], isAllSelected: false}));
.then((data) => {
setSelected({selectedUUIDs: [], isAllSelected: false});
return data;
});
}, [loadData]);
const toggleRowSelect = React.useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment