fix: queryParams do not be updated timely

This commit is contained in:
jialin
2026-06-14 19:21:36 +08:00
committed by jialin
parent ed3e779d22
commit 9566e0cdb2
+4 -1
View File
@@ -269,6 +269,10 @@ const SummaryTab: React.FC = () => {
perPage: 100
};
if (params) {
setQueryParams(currentParams);
}
// "filter by user" — restricts every resource fetch to these creator ids.
const creatorFilter = currentParams.selectedUsers.length
? { creator_ids: currentParams.selectedUsers }
@@ -310,7 +314,6 @@ const SummaryTab: React.FC = () => {
filters: creatorFilter
})
]);
setQueryParams(currentParams);
};
// --- derived: donuts ---