Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

feat: use full path in location search (#1511)

Lukasz Piepiora5b18d145824d
diff --git a/frontend/components/Location/Selector.vue b/frontend/components/Location/Selector.vue
index 62f18381..5808e5cf 100644
--- a/frontend/components/Location/Selector.vue
+++ b/frontend/components/Location/Selector.vue
@@ -101,7 +101,8 @@
}
const filteredLocations = computed(() => {
- const filtered = fuzzysort.go(search.value, locations.value, { key: "name", all: true }).map(i => i.obj);
+ const keys = ["name", "treeString"];
+ const filtered = fuzzysort.go(search.value, locations.value, { keys, all: true }).map(i => i.obj);
return filtered;
});