This commit is contained in:
Oliver Walters 2024-08-11 08:10:40 +00:00
parent cb91e6f860
commit a23bfdfc6f

View File

@ -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([]);
}