ui: fix settings bug

This commit is contained in:
Koushik Dutta
2022-07-25 10:34:44 -07:00
parent 02045cab65
commit 92bf534a77
3 changed files with 7 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/core",
"version": "0.1.18",
"version": "0.1.19",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/core",
"version": "0.1.18",
"version": "0.1.19",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/core",
"version": "0.1.18",
"version": "0.1.19",
"description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -107,9 +107,10 @@ export default {
value: setting,
}));
if (!this.usingDefaultSettingsGroupName) {
if (this.settingsGroupName === 'extensions' && !this.availableMixins.length)
this.usingDefaultSettingsGroupName = true;
if (!this.settingsGroups[this.settingsGroupName])
// make sure the selected settings tab still exists
if (this.settingsGroupName === 'extensions')
this.usingDefaultSettingsGroupName = !this.availableMixins.length;
else if (!this.settingsGroups[this.settingsGroupName])
this.usingDefaultSettingsGroupName = true;
}
if (this.usingDefaultSettingsGroupName) {