Skip to content

Commit

Permalink
Merge pull request #1326 from CodeCrowCorp/dev
Browse files Browse the repository at this point in the history
Fix: null thumbnail error
  • Loading branch information
gagansuie authored Jul 15, 2024
2 parents a4755ea + 3903bf1 commit 22f7a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Channel/Chat/DrawerEditChannel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
if (file) {
const reader = new FileReader()
reader.addEventListener('load', function () {
thumbnailRef.setAttribute('src', reader.result)
thumbnailRef?.setAttribute('src', reader.result)
})
reader.readAsDataURL(file)
Expand Down

0 comments on commit 22f7a29

Please sign in to comment.