mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-09 18:37:50 +00:00
Tweak query return data
This commit is contained in:
1 parent
e094f185b6
commit
cb91e6f860
1 file changed
+4
@@ -43,6 +43,10 @@ export function usePluginPanels({
|
||||
enabled: pluginPanelsEnabled && !!targetModel,
|
||||
queryKey: [targetModel, targetId],
|
||||
queryFn: () => {
|
||||
if (!pluginPanelsEnabled || !targetModel) {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
|
||||
return api
|
||||
.get(apiUrl(ApiEndpoints.plugin_panel_list), {
|
||||
params: {
|
||||
|
||||
Reference in new issue
Block a user