mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-09 18:37:50 +00:00
async fn
This commit is contained in:
1 parent
cb91e6f860
commit
a23bfdfc6f
1 file changed
+1
-1
@@ -42,7 +42,7 @@ export function usePluginPanels({
|
||||
const { isFetching, data } = useQuery({
|
||||
enabled: pluginPanelsEnabled && !!targetModel,
|
||||
queryKey: [targetModel, targetId],
|
||||
queryFn: () => {
|
||||
queryFn: async () => {
|
||||
if (!pluginPanelsEnabled || !targetModel) {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user