|
|
@@ -210,8 +210,7 @@ export default {
|
|
210
|
210
|
// They're often loaded from sidebar
|
|
211
|
211
|
const ignoredFromTypeChange = ['event', 'exhibition']
|
|
212
|
212
|
if (
|
|
213
|
|
- typeFromRoute(to) != typeFromRoute(from) &&
|
|
214
|
|
- !ignoredFromTypeChange.includes(typeFromRoute(to))
|
|
|
213
|
+ typeFromRoute(to) != typeFromRoute(from)
|
|
215
|
214
|
) {
|
|
216
|
215
|
this.clearAndInitPostList('type change')
|
|
217
|
216
|
}
|
|
|
@@ -220,7 +219,7 @@ export default {
|
|
220
|
219
|
// Post slug sometimes appears as a sort so we check it against known sorts
|
|
221
|
220
|
validSorts.includes(to.sortBy) && validSorts.includes(from.sortBy)
|
|
222
|
221
|
) {
|
|
223
|
|
- console.log('$route watcher:sort changed fired', to, from)
|
|
|
222
|
+ this.clearAndInitPostList('sort change')
|
|
224
|
223
|
}
|
|
225
|
224
|
}
|
|
226
|
225
|
},
|