Преглед изворни кода

:recycle: Small refactor to address rendering issues

tabs-content
tomit4 пре 3 година
родитељ
комит
c9c77a0b1d
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1
    2
      frontend/src/views/HomeView.vue

+ 1
- 2
frontend/src/views/HomeView.vue Прегледај датотеку

1
 <template lang="pug">
1
 <template lang="pug">
2
 main.view--home
2
 main.view--home
3
-    p {{ cP._profile.user_name }}
4
     article.w-flex.sm-column.md-row.align-center
3
     article.w-flex.sm-column.md-row.align-center
5
         template(v-if='isLoading')
4
         template(v-if='isLoading')
6
             w-spinner(bounce)
5
             w-spinner(bounce)
69
     },
68
     },
70
     computed: {
69
     computed: {
71
         cP() {
70
         cP() {
72
-            return currentProfile
71
+            return currentProfile ? currentProfile : null
73
         },
72
         },
74
         cards() {
73
         cards() {
75
             let initialCards = currentProfile.queue.map(qProfile =>
74
             let initialCards = currentProfile.queue.map(qProfile =>

Loading…
Откажи
Сачувај