Skip to content

Commit 609a3f4

Browse files
[UI] Library fix (#11530)
* Ensure "lib" is built as part of CI * Fix useMonitorBackgroundTask hook
1 parent 6830ba5 commit 609a3f4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/qc_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ jobs:
759759
- name: Install dependencies
760760
run: cd src/frontend && yarn install
761761
- name: Build frontend
762-
run: cd src/frontend && yarn run compile && yarn run build
762+
run: cd src/frontend && yarn run compile && yarn run lib && yarn run build
763763
- name: Write version file - SHA
764764
run: cd src/backend/InvenTree/web/static/web/.vite && echo "$GITHUB_SHA" > sha.txt
765765
- name: Zip frontend

src/frontend/lib/hooks/MonitorBackgroundTask.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { ApiEndpoints } from '@lib/enums/ApiEndpoints';
2-
import { apiUrl } from '@lib/functions/Api';
31
import { useDocumentVisibility } from '@mantine/hooks';
42
import { notifications, showNotification } from '@mantine/notifications';
53
import {
@@ -10,7 +8,8 @@ import {
108
import { type QueryClient, useQuery } from '@tanstack/react-query';
119
import type { AxiosInstance } from 'axios';
1210
import { useEffect, useState } from 'react';
13-
import { queryClient } from '../../src/App';
11+
import { ApiEndpoints } from '../enums/ApiEndpoints';
12+
import { apiUrl } from '../functions/Api';
1413

1514
export type MonitorBackgroundTaskProps = {
1615
api: AxiosInstance;
@@ -114,6 +113,6 @@ export default function useMonitorBackgroundTask(
114113
});
115114
})
116115
},
117-
queryClient
116+
props.queryClient
118117
);
119118
}

0 commit comments

Comments
 (0)