1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: issue with ENUM and SET fields on table filler modal

This commit is contained in:
2021-05-13 20:46:44 +02:00
parent 7a62131cc7
commit 475397ca34
3 changed files with 29 additions and 4 deletions

View File

@ -269,6 +269,9 @@ export default {
fieldDefault = moment().format(`YYYY-MM-DD HH:mm:ss${datePrecision}`);
}
}
if (field.enumValues)
fieldDefault = field.enumValues.replaceAll('\'', '').split(',');
}
rowObj[field.name] = { value: fieldDefault };