refactor(editor): Fix typescript issues in components (no-changelog) (#9580)

This commit is contained in:
Elias Meire
2024-05-31 16:27:56 +02:00
committed by GitHub
parent e23420d89d
commit 3227f6c13e
20 changed files with 57 additions and 58 deletions

View File

@@ -28,7 +28,7 @@ export default defineComponent({
},
data() {
return {
observer: null,
observer: null as IntersectionObserver | null,
};
},
mounted() {
@@ -64,7 +64,7 @@ export default defineComponent({
});
},
beforeUnmount() {
if (this.enabled) {
if (this.enabled && this.observer) {
this.observer.disconnect();
}
},