feat: improving search

This commit is contained in:
2025-05-04 09:56:41 +01:00
parent 6952aa16da
commit b57a703812
2 changed files with 15 additions and 4 deletions

View File

@@ -20,7 +20,11 @@ type SearchImageStore = {
// How wonderfully functional
const getAllValues = (object: object): Array<string> => {
const loop = (acc: Array<string>, next: object): Array<string> => {
for (const _value of Object.values(next)) {
for (const [key, _value] of Object.entries(next)) {
if (key === "ID") {
continue;
}
const value: unknown = _value;
switch (typeof value) {
case "object":