mirror of https://github.com/fantasticit/think.git
tiptap: fix loading indicator in flow modal
This commit is contained in:
parent
9a7614f569
commit
4ce3e03058
|
@ -28,7 +28,7 @@ export const FlowSettingModal: React.FC<IProps> = ({ editor }) => {
|
||||||
editor.setXml(initialData);
|
editor.setXml(initialData);
|
||||||
})
|
})
|
||||||
.catch(setError)
|
.catch(setError)
|
||||||
.finally(toggleLoading);
|
.finally(() => toggleLoading(false));
|
||||||
},
|
},
|
||||||
[toggleLoading, initialData]
|
[toggleLoading, initialData]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue