mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
Merge pull request #919 from dyaskur/develop
fix: fail to duplicate JSON row
This commit is contained in:
@@ -339,6 +339,8 @@ onMounted(() => {
|
||||
for (const field of props.fields) {
|
||||
if (typeof props.rowToDuplicate[field.name] !== 'object')
|
||||
rowObj[field.name] = { value: props.rowToDuplicate[field.name] };
|
||||
else if (field.type === 'JSON')
|
||||
rowObj[field.name] = { value: JSON.stringify(props.rowToDuplicate[field.name]) };
|
||||
|
||||
if (field.autoIncrement || !!field.onUpdate)// Disable by default auto increment or "on update" fields
|
||||
fieldsToExclude.value = [...fieldsToExclude.value, field.name];
|
||||
|
Reference in New Issue
Block a user