From 96e5bc3fd6f958981b5a6c7f7416c45441d8132a Mon Sep 17 00:00:00 2001 From: KaungHtet-Kyaw Date: Wed, 25 Oct 2023 14:52:35 +0630 Subject: [PATCH] fix: image duplication after first block --- package.json | 2 +- src/index.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c49a2a4..3bede6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pawritharya/editorjs-image-tool-delete", - "version": "1.0.64", + "version": "1.0.65", "keywords": [ "pawritharya", "tool", diff --git a/src/index.js b/src/index.js index 5f2c72b..bf348bf 100644 --- a/src/index.js +++ b/src/index.js @@ -603,6 +603,11 @@ export default class ImageTool { * @returns {void} */ uploadUrlWithDelegation(url) { + // do not reupload the previous blocks + if (this.data.file.url) { + return; + } + if (this.config.showPreloaderForUrlUpload) { this.ui.showPreloader(url); }