Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
0c6ecb2a3b
commit
27abb6aedc
@@ -681,13 +681,18 @@ export function CustomFormBuilder() {
|
||||
description: d.label + (d.description ? ` — ${d.description}` : ""),
|
||||
kind: "custom" as const,
|
||||
})),
|
||||
...formFields.map((f) => ({
|
||||
key: `{{field.${f.key}}}`,
|
||||
description: `${f.label} (${f.type})`,
|
||||
kind: "field" as const,
|
||||
})),
|
||||
];
|
||||
return all.filter(
|
||||
(v) =>
|
||||
v.key.toLowerCase().includes(search.toLowerCase()) ||
|
||||
v.description.toLowerCase().includes(search.toLowerCase()),
|
||||
);
|
||||
}, [customDefs, search]);
|
||||
}, [customDefs, formFields, search]);
|
||||
|
||||
const filteredCases = useMemo(() => {
|
||||
const s = caseSearch.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user