|
|
@@ -203,11 +203,11 @@ export default {
|
|
203
|
203
|
/**
|
|
204
|
204
|
* Load posts if they're not already in state
|
|
205
|
205
|
*/
|
|
206
|
|
- if (!this[`all${type}Loaded`] && allPostsOfType.length < 1) {
|
|
|
206
|
+ // if (!this[`all${type}Loaded`] && allPostsOfType.length < 1) {
|
|
207
|
207
|
const res = await this.$store.dispatch(`getAll${type}`)
|
|
208
|
208
|
allPostsOfType = res
|
|
209
|
209
|
console.log(`reloaded ${type}...`)
|
|
210
|
|
- }
|
|
|
210
|
+ // }
|
|
211
|
211
|
if (allPostsOfType.length < 1) return
|
|
212
|
212
|
const singlePostData = allPostsOfType.filter(
|
|
213
|
213
|
post => post.slug == this.$route.params.slug,
|