mirror of
https://github.com/hexastack/hexabot
synced 2025-04-10 15:55:55 +00:00
Merge branch '714-refactor-visual-editor-dialogs' into 728-optimize-usedialogs-logic
This commit is contained in:
commit
7c52554077
@ -113,7 +113,7 @@ const Diagrams = () => {
|
||||
setSelectedBlockId(undefined);
|
||||
},
|
||||
});
|
||||
const { mutateAsync: updateBlock } = useUpdate(EntityType.BLOCK, {
|
||||
const { mutate: updateBlock } = useUpdate(EntityType.BLOCK, {
|
||||
invalidate: false,
|
||||
});
|
||||
const debouncedUpdateCategory = useDebouncedUpdate(updateCategory, 300);
|
||||
|
@ -31,7 +31,7 @@ export const useDialogs = (): DialogHook => {
|
||||
|
||||
const { open, close } = context;
|
||||
const confirm = React.useCallback<OpenConfirmDialog>(
|
||||
async (msg, { onClose, ...options } = {}) => {
|
||||
(msg, { onClose, ...options } = {}) => {
|
||||
const { count, mode, isSingleton, ...rest } = options;
|
||||
|
||||
return open(
|
||||
|
Loading…
Reference in New Issue
Block a user