Skip to content

Commit

Permalink
error displaying only in the parent component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudarshan-21 committed Apr 16, 2024
1 parent 82569b6 commit 321e1c8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zimui/src/components/TopicHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const fetchData = async function () {
try {
const resp = await main.fetchTopic(props.slug)
if (resp) {
topic.value = resp
topic.value = resp
}
} catch (error) {
main.setErrorMessage('An error occured, Please try again.')
Expand Down Expand Up @@ -91,10 +91,7 @@ const goToPreviousPage = () => {
</script>

<template>
<div v-if="main.errorMessage">
<ErrorDisplay/>
</div>
<div v-else-if="topic" class="content">
<div v-if="topic" class="content">
<nav
class="navbar navbar px-0 channel-navbar navbar-light fixed-top navbar-expand shadow"
>
Expand Down

0 comments on commit 321e1c8

Please sign in to comment.