Skip to content

Commit ac9bf26

Browse files
committed
Reset the site if it's null. Closes #2408 ...
The entry listing component emits a site-changed event when you change the site filter. This also happens immediately when it's mounted. In 2408, they're using a single-site app, which would have no site filter, so it's immediately null. You'd see the same behavior if you manually clear the site filter on a multisite install. Introduced in 28d6563
1 parent da32884 commit ac9bf26

File tree

1 file changed

+2
-0
lines changed
  • resources/js/components/collections

1 file changed

+2
-0
lines changed

resources/js/components/collections/View.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ export default {
231231
watch: {
232232
233233
view(view) {
234+
this.site = this.site || this.initialSite;
235+
234236
this.$config.set('wrapperClass', view === 'tree' ? undefined : 'max-w-full');
235237
236238
localStorage.setItem('statamic.collection-view.'+this.handle, view);

0 commit comments

Comments
 (0)