null check

This commit is contained in:
Roman Cervantes 2019-10-18 13:15:58 -07:00
parent 5f7155c53a
commit 91c9cb2cfa

View file

@ -93,7 +93,7 @@ export default {
? JSON.parse(JSON.stringify(this.settings))
: JSON.parse(JSON.stringify(this.defaultSettings));
if (!this.localSettings[this.platform.code]) {
if (this.platform && !this.localSettings[this.platform.code]) {
this.localSettings[this.platform.code] = {
theme: 'theme-default',
};