This commit is contained in:
estifanos
2026-08-10 10:21:58 +00:00
parent 73de3f212b
commit 2c1b0306a0
2 changed files with 3 additions and 11 deletions

View File

@@ -122,6 +122,7 @@ export function LicenseQueuePage() {
const activeView = SAVED_VIEWS.find((v) => v.id === view) ?? SAVED_VIEWS[0];
const { data: licenseTypes } = useGetLicenseTypesQuery();
const { data: counts } = useGetQueueCountsQuery();
// A `/licence-review/type/:typeCode` deep link pins the type facet.
const pinnedTypeId = useMemo(() => {
@@ -150,12 +151,6 @@ export function LicenseQueuePage() {
[activeView, urlFilter, debouncedSearch, pinnedTypeId, page],
);
// Tab badges scoped to the same license-type facet as the grid, so
// "Unassigned"/"Mine"/"All" counts match what's actually filtered in.
const { data: counts } = useGetQueueCountsQuery({
licenseTypeId: filter.licenseTypeId,
});
// One query per source; the two inactive ones are skipped, so switching
// views costs a single request rather than keeping three in flight.
const queueQuery = useGetQueueQuery(filter, {