Skip to content

Commit

Permalink
fix: npe
Browse files Browse the repository at this point in the history
  • Loading branch information
kurozenzen committed Jan 27, 2024
1 parent b37677c commit 21b14a6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib/components/kurosearch/media-gif/Gif.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
onMount(() => postObserver?.observe(media));
onDestroy(() => {
postObserver?.unobserve(media);
media?.src = '';
});
</script>

Expand Down
1 change: 0 additions & 1 deletion src/lib/components/kurosearch/media-image/Image.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
});
onDestroy(() => {
postObserver?.unobserve(media);
media?.src = '';
});
</script>

Expand Down
1 change: 0 additions & 1 deletion src/lib/components/kurosearch/media-video/Video.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
onMount(() => observer?.observe(container));
onDestroy(() => {
observer?.unobserve(container);
video?.src = '';
});
</script>

Expand Down

0 comments on commit 21b14a6

Please sign in to comment.