Skip to content

High performance self-hosted photo and video management solution.

fix(web): show camera make in search options after searching (#11884)

Michel Heusschenc9f1304bce74
diff --git a/web/src/lib/components/shared-components/search-bar/search-camera-section.svelte b/web/src/lib/components/shared-components/search-bar/search-camera-section.svelte
index 3e7f03e9c2..3610b11a74 100644
--- a/web/src/lib/components/shared-components/search-bar/search-camera-section.svelte
+++ b/web/src/lib/components/shared-components/search-bar/search-camera-section.svelte
@@ -27,11 +27,12 @@
model,
includeNull: true,
});
+
+ makes = results.map((result) => result ?? '');
+
if (filters.make && !makes.includes(filters.make)) {
filters.make = undefined;
}
-
- makes = results.map((result) => result ?? '');
}
async function updateModels(make?: string) {