fix: queryParams do not be updated timely
This commit is contained in:
@@ -269,6 +269,10 @@ const SummaryTab: React.FC = () => {
|
|||||||
perPage: 100
|
perPage: 100
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (params) {
|
||||||
|
setQueryParams(currentParams);
|
||||||
|
}
|
||||||
|
|
||||||
// "filter by user" — restricts every resource fetch to these creator ids.
|
// "filter by user" — restricts every resource fetch to these creator ids.
|
||||||
const creatorFilter = currentParams.selectedUsers.length
|
const creatorFilter = currentParams.selectedUsers.length
|
||||||
? { creator_ids: currentParams.selectedUsers }
|
? { creator_ids: currentParams.selectedUsers }
|
||||||
@@ -310,7 +314,6 @@ const SummaryTab: React.FC = () => {
|
|||||||
filters: creatorFilter
|
filters: creatorFilter
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
setQueryParams(currentParams);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// --- derived: donuts ---
|
// --- derived: donuts ---
|
||||||
|
|||||||
Reference in New Issue
Block a user