From e878f4d5430b1e2d800cfaf79661f1b85f456b25 Mon Sep 17 00:00:00 2001 From: Alec Ritson Date: Wed, 8 May 2019 11:53:16 +0100 Subject: [PATCH] Make sure we can save a new cats layout --- .../catalogue-manager/categories/edit/CategoryDisplay.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/catalogue-manager/categories/edit/CategoryDisplay.vue b/resources/assets/js/components/catalogue-manager/categories/edit/CategoryDisplay.vue index 568b24b6..39b6d027 100644 --- a/resources/assets/js/components/catalogue-manager/categories/edit/CategoryDisplay.vue +++ b/resources/assets/js/components/catalogue-manager/categories/edit/CategoryDisplay.vue @@ -14,8 +14,8 @@ } }, mounted() { - if (this.current) { - this.loaded = true; + this.loaded = true; + if (this.current.data && this.current.data) { this.layout = this.current.data.id; } Dispatcher.add('category-display', this);