Skip to content

Commit 6339402

Browse files
committed
fix:review changes
Signed-off-by: Amitkanswal <[email protected]>
1 parent 7ac2f99 commit 6339402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/HomeContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
32
<NotFound v-if="error" />
43
<RenderComponent
54
v-if="data"
@@ -56,7 +55,8 @@ export default defineComponent({
5655
},
5756
mounted() {
5857
onEntryChange(async () => {
59-
if (process.env.VUE_APP_CONTENTSTACK_LIVE_PREVIEW === 'true') {
58+
const { VUE_APP_CONTENTSTACK_LIVE_PREVIEW } = process.env;
59+
if (VUE_APP_CONTENTSTACK_LIVE_PREVIEW === 'true') {
6060
try {
6161
await this.getData();
6262
} catch (error) {

0 commit comments

Comments
 (0)