In this PR, we are refactoring two things: - leverage field.defaultValue for Select and MultiSelect settings form (instead of option.isDefault) - use quoted string (ex: "'USD'") for string default values to embrace backend format --------- Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com>
4 lines
102 B
TypeScript
4 lines
102 B
TypeScript
export const applySimpleQuotesToString = <T extends string>(
|
|
value: T,
|
|
): `'${T}'` => `'${value}'`;
|