2
0
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:
Oliver
2026-03-15 15:37:56 +11:00
committed by GitHub
parent 6830ba5efe
commit 609a3f4a36
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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
);
}