Skip to content

High performance self-hosted photo and video management solution.

fix(web): cannot save exclusion pattern (#5738)

Alexae2608e31df7
diff --git a/web/src/lib/components/user-settings-page/library-list.svelte b/web/src/lib/components/user-settings-page/library-list.svelte
index 8f5374a603..d134604c6c 100644
--- a/web/src/lib/components/user-settings-page/library-list.svelte
+++ b/web/src/lib/components/user-settings-page/library-list.svelte
@@ -119,7 +119,6 @@
try {
const libraryId = libraries[updateLibraryIndex].id;
-
await api.libraryApi.updateLibrary({ id: libraryId, updateLibraryDto: { ...event } });
} catch (error) {
handleError(error, 'Unable to update library');
@@ -394,7 +393,7 @@
<div transition:slide={{ duration: 250 }} class="mb-4 ml-4 mr-4">
<LibraryScanSettingsForm
{library}
- on:submit={({ detail }) => handleUpdate(detail)}
+ on:submit={({ detail }) => handleUpdate(detail.library)}
on:cancel={() => (editScanSettings = null)}
/>
</div>