Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Apr 1, 2024
1 parent 167f799 commit 5c8eb63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const data = computed(()=> store.getData)
</script>

<template>
<div v-if="responses">
<template v-if="responses?.elements" v-for="element in responses.elements">
<div v-if="data">
<template v-if="data?.elements" v-for="element in data.elements">
<Jumbotron v-if="element.type=='jumbotron'" :body="element.body"/>
<Featured v-if="element.type=='featured'" :body="element.body"/>
</template>
Expand Down
2 changes: 1 addition & 1 deletion frontend/store/homePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
actions: {
async fetchData() {
const data = await $fetch(useApiUrlResolver().resolve("api/home"))
this.homeAll = data
this.data = data
}
}
})

0 comments on commit 5c8eb63

Please sign in to comment.