Skip to content

Commit

Permalink
Merge pull request #919 from dyaskur/develop
Browse files Browse the repository at this point in the history
fix: fail to duplicate JSON row
  • Loading branch information
Fabio286 authored Jan 13, 2025
2 parents d3ae45e + 507dc7d commit c32add7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/components/ModalFakerRows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c32add7

Please sign in to comment.