diff --git a/src/components/InfiniteScroll.vue b/src/components/InfiniteScroll.vue index 15bd964c..4efb7fc9 100644 --- a/src/components/InfiniteScroll.vue +++ b/src/components/InfiniteScroll.vue @@ -60,17 +60,21 @@ export default class InfiniteScroll extends Vue { * Used internally by Vue's lifecycle system */ updated() { - if (!this.observer) { - const options = { - root: null, - rootMargin: `0px 0px ${this.distance}px 0px`, - threshold: 1.0, - }; - this.observer = new IntersectionObserver( - this.handleIntersection, - options, - ); - this.observer.observe(this.$refs.sentinel as HTMLElement); + if (!this.observer && this.$refs.sentinel) { + const sentinelElement = this.$refs.sentinel as HTMLElement; + // Ensure we have a valid HTMLElement before observing + if (sentinelElement instanceof HTMLElement) { + const options = { + root: null, + rootMargin: `0px 0px ${this.distance}px 0px`, + threshold: 1.0, + }; + this.observer = new IntersectionObserver( + this.handleIntersection, + options, + ); + this.observer.observe(sentinelElement); + } } } diff --git a/src/components/MembersList.vue b/src/components/MembersList.vue index cb5449b3..589216d8 100644 --- a/src/components/MembersList.vue +++ b/src/components/MembersList.vue @@ -66,7 +66,7 @@ changes the password -->
@@ -207,7 +207,7 @@ class="text-blue-500" @click="onClickLoadProject(fulfilledByThis.handleId)" > - {{ fulfilledByThis.name }} + {{ fulfilledByThis.name || "Unnamed Project" }}
diff --git a/src/views/ProjectsView.vue b/src/views/ProjectsView.vue index ccdfab67..f5762307 100644 --- a/src/views/ProjectsView.vue +++ b/src/views/ProjectsView.vue @@ -252,7 +252,9 @@
-

{{ project.name }}

+

+ {{ project.name || "Unnamed Project" }} +

{{ project.description }}