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, {
|
||||
|
||||
@@ -417,11 +417,8 @@ export const licensingApi = baseApi
|
||||
* claim or a decision refreshes the badges along with the list and the
|
||||
* numbers can never drift from what the grid is showing.
|
||||
*/
|
||||
getQueueCounts: builder.query<QueueCounts, QueueFilter | void>({
|
||||
query: (params) => ({
|
||||
url: '/license-application-review/counts',
|
||||
params: serialiseQueueFilter(params),
|
||||
}),
|
||||
getQueueCounts: builder.query<QueueCounts, void>({
|
||||
query: () => ({ url: '/license-application-review/counts' }),
|
||||
providesTags: () => [listTag('ApplicationQueue')],
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user