mirror of
https://github.com/inventree/InvenTree.git
synced 2026-03-21 11:44:42 +00:00
[UI] Library fix (#11530)
* Ensure "lib" is built as part of CI * Fix useMonitorBackgroundTask hook
This commit is contained in:
2
.github/workflows/qc_checks.yaml
vendored
2
.github/workflows/qc_checks.yaml
vendored
@@ -759,7 +759,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: cd src/frontend && yarn install
|
||||
- name: Build frontend
|
||||
run: cd src/frontend && yarn run compile && yarn run build
|
||||
run: cd src/frontend && yarn run compile && yarn run lib && yarn run build
|
||||
- name: Write version file - SHA
|
||||
run: cd src/backend/InvenTree/web/static/web/.vite && echo "$GITHUB_SHA" > sha.txt
|
||||
- name: Zip frontend
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { ApiEndpoints } from '@lib/enums/ApiEndpoints';
|
||||
import { apiUrl } from '@lib/functions/Api';
|
||||
import { useDocumentVisibility } from '@mantine/hooks';
|
||||
import { notifications, showNotification } from '@mantine/notifications';
|
||||
import {
|
||||
@@ -10,7 +8,8 @@ import {
|
||||
import { type QueryClient, useQuery } from '@tanstack/react-query';
|
||||
import type { AxiosInstance } from 'axios';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { queryClient } from '../../src/App';
|
||||
import { ApiEndpoints } from '../enums/ApiEndpoints';
|
||||
import { apiUrl } from '../functions/Api';
|
||||
|
||||
export type MonitorBackgroundTaskProps = {
|
||||
api: AxiosInstance;
|
||||
@@ -114,6 +113,6 @@ export default function useMonitorBackgroundTask(
|
||||
});
|
||||
})
|
||||
},
|
||||
queryClient
|
||||
props.queryClient
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user