Переглянути джерело

:bug: trying to stop double loading of posts

tags/0.9.0
J 4 роки тому
джерело
коміт
6b2adc98ea
2 змінених файлів з 4 додано та 2 видалено
  1. 4
    1
      vue-theme/src/pages/list.vue
  2. 0
    1
      vue-theme/src/store/index.js

+ 4
- 1
vue-theme/src/pages/list.vue Переглянути файл

@@ -105,7 +105,10 @@ export default {
105 105
                 this.$store.commit(`CLEAR_${this.pType.toUpperCase()}`)
106 106
                 
107 107
                 // Clear any state needed to track title inbetweens
108
-                this.$store.commit(`CLEAR_${this.pType.toUpperCase()}_SEEN`)
108
+                const hasInbetweens = ['artist']
109
+                if(hasInbetweens.includes(this.type)) {
110
+                    this.$store.commit(`CLEAR_${this.pType.toUpperCase()}_SEEN`)
111
+                }
109 112
             }
110 113
 
111 114
             try {

+ 0
- 1
vue-theme/src/store/index.js Переглянути файл

@@ -87,7 +87,6 @@ const store = new Vuex.Store({
87 87
     mutations,
88 88
     state,
89 89
     modules: {
90
-        'blog': post,
91 90
         post,
92 91
         page,
93 92
         artist,

Завантаження…
Відмінити
Зберегти