Skip to content

Commit ed2a62b

Browse files
Reduce out file size; Reset isInternalChange on rejection
1 parent 502c9b5 commit ed2a62b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "directus-extension-editorjs",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"author": {
55
"email": "dimitrov.adrian+gh@gmail.com",
66
"name": "Adrian Dimitrov"
@@ -41,7 +41,7 @@
4141
"@editorjs/checklist": "^1.3.0",
4242
"@editorjs/code": "^2.7.0",
4343
"@editorjs/delimiter": "^1.2.0",
44-
"@editorjs/editorjs": "^2.22.2",
44+
"@editorjs/editorjs": "2.22.2",
4545
"@editorjs/embed": "^2.5.0",
4646
"@editorjs/header": "^2.6.2",
4747
"@editorjs/image": "^2.6.2",

src/interface.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ import { defineComponent, ref, onMounted, onUnmounted, watch, PropType } from 'v
3131
import { useI18n } from 'vue-i18n';
3232
import { useApi, useStores } from '@directus/extensions-sdk';
3333
import EditorJS from '@editorjs/editorjs';
34-
import { isEqual, cloneDeep } from 'lodash';
34+
import isEqual from 'lodash/isEqual';
35+
import cloneDeep from 'lodash/cloneDeep';
3536
import useDirectusToken from './use-directus-token';
3637
import useFileHandler from './use-filehandler';
3738
import useTools from './use-tools';
@@ -188,6 +189,7 @@ export default defineComponent({
188189
189190
emit('input', result);
190191
} catch (error) {
192+
isInternalChange.value = false;
191193
window.console.warn('editorjs-extension: %s', error);
192194
}
193195
}

0 commit comments

Comments
 (0)