Fix error when removing image

Error report: https://discord.com/channels/1014774730907209781/1085803885500825600/1108150298289115187
This commit is contained in:
patriceac
2023-05-16 17:43:14 -07:00
committed by GitHub
parent 1dc326cc41
commit 9410879b73

View File

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