|
|
@@ -156,7 +156,7 @@ export default {
|
|
156
|
156
|
// Always unset before setting the intersection loader
|
|
157
|
157
|
this.unsetIntersectionLoader()
|
|
158
|
158
|
|
|
159
|
|
- console.warn('Setting interesection loader...')
|
|
|
159
|
+ // console.warn('Setting interesection loader...')
|
|
160
|
160
|
this.observer = new IntersectionObserver(entries => {
|
|
161
|
161
|
entries.forEach(entry => {
|
|
162
|
162
|
if (!entry.isIntersecting || this.loadingFetched) return
|
|
|
@@ -199,6 +199,11 @@ export default {
|
|
199
|
199
|
// and the post type has changed
|
|
200
|
200
|
type(newType, oldType) {
|
|
201
|
201
|
if(!postTypes.includes(newType)) return console.warn('type not valid...')
|
|
|
202
|
+
|
|
|
203
|
+ // Ignore types with presorts so the sortBy watcher can handle them
|
|
|
204
|
+ const ignore = ['event, exhibition']
|
|
|
205
|
+ if(ignore.includes(newType)) return
|
|
|
206
|
+
|
|
202
|
207
|
this.clearAndInitPostList('type change')
|
|
203
|
208
|
},
|
|
204
|
209
|
sortBy(newSort, oldSort) {
|