2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-10 05:08:09 +00:00

UI panels fix (#10341) (#10342)

* Tweak sample plugin

* Re-fetch panels when instance changes

* Unit test fix

(cherry picked from commit df0e27bed2)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]
2025-09-18 13:31:43 +10:00
committed by GitHub
parent 39dc2b17fd
commit 9705ea90c2
3 changed files with 15 additions and 11 deletions

View File

@@ -52,7 +52,7 @@ export function usePluginPanels({
// API query to fetch initial information on available plugin panels
const pluginQuery = useQuery({
enabled: pluginPanelsEnabled && !!model && id !== undefined,
queryKey: ['custom-plugin-panels', model, id],
queryKey: ['custom-plugin-panels', model, id, instance],
throwOnError: (error: any) => {
console.error('ERR: Failed to fetch plugin panels');
return false;