mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
revert
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user