Skip to content

Commit

Permalink
fix: properly update view after removing library config
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Sep 30, 2024
1 parent 669503f commit 1f739a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Shokofin/Pages/Scripts/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,12 @@ async function updateView(view, form, config) {

case "library":
activeSections.push("Library_Basic", "Library_Collection", "Library_New", "Library_Existing", "Library_Experimental");

await applyLibraryConfigToForm(form, form.querySelector("#MediaFolderSelector").value, config);
break;

case "vfs":
activeSections.push("VFS_Basic", "VFS_Location");

await applyLibraryConfigToForm(form, form.querySelector("#MediaFolderSelector").value, config);
break;

case "users":
Expand Down Expand Up @@ -1123,6 +1123,8 @@ async function removeUserConfig(form) {
await ShokoApiClient.updateConfiguration(config);
Dashboard.processPluginConfigurationUpdateResult();

form.querySelector("#UserSelector").value = "";

return config;
}

Expand Down

0 comments on commit 1f739a6

Please sign in to comment.