Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
f5517df765
commit
dae34a3ae2
@@ -1192,6 +1192,11 @@ export function CustomFormBuilder() {
|
||||
description: d.label + (d.description ? ` — ${d.description}` : ""),
|
||||
kind: "custom" as const,
|
||||
})),
|
||||
...clientCustomDefs.map((d) => ({
|
||||
key: `{{client.custom.${d.key}}}`,
|
||||
description: `Client: ${d.label}` + (d.description ? ` — ${d.description}` : ""),
|
||||
kind: "client-custom" as const,
|
||||
})),
|
||||
...formFields.map((f) => ({
|
||||
key: `{{field.${f.key}}}`,
|
||||
description: `${f.label} (${f.type})`,
|
||||
@@ -1203,7 +1208,7 @@ export function CustomFormBuilder() {
|
||||
v.key.toLowerCase().includes(search.toLowerCase()) ||
|
||||
v.description.toLowerCase().includes(search.toLowerCase()),
|
||||
);
|
||||
}, [customDefs, formFields, search]);
|
||||
}, [customDefs, clientCustomDefs, formFields, search]);
|
||||
|
||||
const filteredCases = useMemo(() => {
|
||||
const s = caseSearch.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user