Skip to content

Commit

Permalink
Fix UI not refreshing after adding a folder to the library
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Dec 30, 2024
1 parent 7f67921 commit b08e78e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/settings-library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default function ViewSettingsLibrary() {
}

await libraryAPI.addLibraryFolders(paths);
}, [libraryAPI.addLibraryFolders]);
invalidate();
}, [libraryAPI.addLibraryFolders, invalidate]);

return (
<div className="setting settings-musicfolder">
Expand Down

0 comments on commit b08e78e

Please sign in to comment.