fix: redundant block template list requests when toggling modals (#7561)

This commit is contained in:
gchust
2025-10-09 18:42:08 +08:00
committed by GitHub
parent 81f885e05e
commit a517e240b8
@@ -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;