mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
async fn
This commit is contained in:
@ -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