Skip to content

Commit

Permalink
Requested changes made in HomePage.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudarshan-21 authored Apr 4, 2024
1 parent 254a842 commit 151c6bc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions zimui/src/pages/HomePage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { onMounted, toRef, Ref, ref, watch, computed } from 'vue'
import { onMounted, toRef, Ref, ref, watch} from 'vue'
import { RouteParams, useRoute } from 'vue-router'
import { useMainStore } from '../stores/main'
Expand All @@ -17,8 +17,6 @@ watch(params, () => {
}
})
const errMessage = computed(() => main.errorMessage)
// fetch channel data and set default topic if needed
onMounted(async () => {
try {
Expand All @@ -37,8 +35,8 @@ import TopicHome from '../components/TopicHome.vue'

<template>
<div>
<div v-if="errMessage" class="error-message">
{{ errMessage }}
<div v-if="main.errorMessage" class="error-message">
{{ main.errorMessage }}
</div>

<div v-else class="d-flex flex-column h-100">
Expand Down

0 comments on commit 151c6bc

Please sign in to comment.