Browse Source

:bug: trying to stop double loading of posts

tags/0.9.0
J 4 years ago
parent
commit
6b2adc98ea
2 changed files with 4 additions and 2 deletions
  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 View File

105
                 this.$store.commit(`CLEAR_${this.pType.toUpperCase()}`)
105
                 this.$store.commit(`CLEAR_${this.pType.toUpperCase()}`)
106
                 
106
                 
107
                 // Clear any state needed to track title inbetweens
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
             try {
114
             try {

+ 0
- 1
vue-theme/src/store/index.js View File

87
     mutations,
87
     mutations,
88
     state,
88
     state,
89
     modules: {
89
     modules: {
90
-        'blog': post,
91
         post,
90
         post,
92
         page,
91
         page,
93
         artist,
92
         artist,

Loading…
Cancel
Save