Skip to content
Clone
main
11 lines 379 B
/**
* Value helpers for {@link FormModal}'s field kinds. Kept out of form-modal.tsx
* so that file exports components only (react-refresh requirement).
*/
/** Read a `multiselect` value back out of the flat form value record. */
export const parseList = (value: unknown): string[] =>
String(value ?? '')
.split(',')
.map((item) => item.trim())
.filter(Boolean)