@refinedev/core 4.44.5 → 4.44.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/iife/index.js +2 -2
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/auditLog/useLog/index.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinedev/core",
|
|
3
|
-
"version": "4.44.
|
|
3
|
+
"version": "4.44.7",
|
|
4
4
|
"description": "refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -82,7 +82,7 @@ export const useLog = <
|
|
|
82
82
|
} = useGetIdentity({
|
|
83
83
|
v3LegacyAuthProviderCompatible: Boolean(authProvider?.isLegacy),
|
|
84
84
|
queryOptions: {
|
|
85
|
-
enabled: !!auditLogContext,
|
|
85
|
+
enabled: !!auditLogContext?.create,
|
|
86
86
|
},
|
|
87
87
|
});
|
|
88
88
|
|
|
@@ -102,7 +102,7 @@ export const useLog = <
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
let authorData;
|
|
105
|
-
if (isLoading) {
|
|
105
|
+
if (isLoading && !!auditLogContext?.create) {
|
|
106
106
|
authorData = await refetch();
|
|
107
107
|
}
|
|
108
108
|
|