4777 multi select field backend implement multi select type (#4790)

- fix default value for multi select field metadata
This commit is contained in:
martmull
2024-04-03 17:19:24 +02:00
committed by GitHub
parent ff6abacc86
commit 6d23642d28
2 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,9 @@ export const serializeDefaultValue = (
}
if (Array.isArray(defaultValue)) {
return defaultValue;
return `'{${defaultValue
.map((value) => value.replace(/'/g, ''))
.join(',')}}'`;
}
if (typeof defaultValue === 'object') {