mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
async fn
This commit is contained in:
parent
cb91e6f860
commit
a23bfdfc6f
@ -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([]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user