mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 15:05:12 +00:00
UI panels fix (#10341)
* Tweak sample plugin * Re-fetch panels when instance changes * Unit test fix
This commit is contained in:
1 parent
21cb488eef
commit
df0e27bed2
3 files changed
+15
-11
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user