mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-24 16:02:20 +08:00
fix: redundant block template list requests when toggling modals (#7561)
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ export const BlockTemplateMenusProvider = ({ children }) => {
|
||||
if (user?.data) {
|
||||
refresh();
|
||||
}
|
||||
}, [user, refresh]);
|
||||
}, [user?.data, refresh]);
|
||||
|
||||
const handleTemplateClick = useMemoizedFn(async ({ item }, options?: any, insert?: any) => {
|
||||
const { uid } = item;
|
||||
|
||||
Reference in New Issue
Block a user