From 5b23ff4972c83c39590bba18fba7b745c8b2550b Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Sat, 5 Oct 2019 15:43:35 -0700 Subject: [PATCH] null check --- src/pages/Settings.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Settings.vue b/src/pages/Settings.vue index d3ef9cb3..474bbbc1 100644 --- a/src/pages/Settings.vue +++ b/src/pages/Settings.vue @@ -6,7 +6,7 @@ -
+
@@ -48,7 +48,7 @@ export default { activeComponent: null, language: null, reloading: false, - localSettings: {}, + localSettings: null, moment, settingsSections: [ { @@ -106,7 +106,7 @@ export default { watch: { localSettings: { handler(oldValue, newValue) { - if (Object.keys(newValue).length) { + if (newValue && Object.keys(newValue).length) { this.save(); if (newValue.language !== undefined && this.language !== newValue.language) {