mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(editor): Fix typescript issues in components (no-changelog) (#9580)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user