mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
tiptap: fix loading indicator in flow modal
This commit is contained in:
@@ -28,7 +28,7 @@ export const FlowSettingModal: React.FC<IProps> = ({ editor }) => {
|
||||
editor.setXml(initialData);
|
||||
})
|
||||
.catch(setError)
|
||||
.finally(toggleLoading);
|
||||
.finally(() => toggleLoading(false));
|
||||
},
|
||||
[toggleLoading, initialData]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user