Commit 66870ef1 by Яков

update

parent 2bf5ed37
...@@ -862,6 +862,7 @@ const QEditor = ({ ...@@ -862,6 +862,7 @@ const QEditor = ({
title: (mediaBlobUrl && uploadedPaths.length === 0) ? (isUploading ? 'Сохранение...' : 'Вставить') : 'Вставить', title: (mediaBlobUrl && uploadedPaths.length === 0) ? (isUploading ? 'Сохранение...' : 'Вставить') : 'Вставить',
className: ' atma-editor-complete', className: ' atma-editor-complete',
onClick: async () => { onClick: async () => {
if ((status === 'recording' || isUploading)) { if ((status === 'recording' || isUploading)) {
return false; return false;
} else { } else {
...@@ -969,7 +970,13 @@ const QEditor = ({ ...@@ -969,7 +970,13 @@ const QEditor = ({
setUploadedPaths([]); setUploadedPaths([]);
setModalTitle(''); setModalTitle('');
} catch (err) { } catch (err) {
console.log(err) console.log(err);
setModalIsOpen(false);
clearBlobUrl();
setUploaderUid(`uid${new Date()}`);
setEmbedContent('');
setUploadedPaths([]);
setModalTitle('');
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment