Merge pull request #1273 from patriceac/patch-2

Fix error when removing image
This commit is contained in:
cmdr2 2023-05-17 14:47:51 +05:30 committed by GitHub
commit e4a7537952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@
img.addEventListener( img.addEventListener(
"load", "load",
function() { function() {
img.closest(".imageTaskContainer").scrollIntoView() img?.closest(".imageTaskContainer").scrollIntoView()
}, },
{ once: true } { once: true }
) )