tiptap: fix loading indicator in flow modal

This commit is contained in:
fantasticit 2022-06-01 00:38:25 +08:00
parent 9a7614f569
commit 4ce3e03058
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export const FlowSettingModal: React.FC<IProps> = ({ editor }) => {
editor.setXml(initialData);
})
.catch(setError)
.finally(toggleLoading);
.finally(() => toggleLoading(false));
},
[toggleLoading, initialData]
);