Skip to content

Commit

Permalink
fix: image duplication after first block
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaung-HtetKyaw committed Oct 25, 2023
1 parent 7b37ed2 commit 96e5bc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pawritharya/editorjs-image-tool-delete",
"version": "1.0.64",
"version": "1.0.65",
"keywords": [
"pawritharya",
"tool",
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 96e5bc3

Please sign in to comment.