Skip to content

Commit

Permalink
Bugfix KNOWAGE-8197
Browse files Browse the repository at this point in the history
  • Loading branch information
BojanSovticEngIT committed Oct 9, 2023
1 parent 499dc75 commit 888c21a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export default defineComponent({
this.columns.forEach((el: any) => {
if (el.isVisible && el.field && el.field !== 'id') {
if (el.defaultValue) newRow[el.field] = el.defaultValue
else newRow[el.field] = ['int', 'float', 'double'].includes(el.type) ? 0 : ''
else newRow[el.field] = ['int', 'float', 'double'].includes(el.columnInfo.type) ? 0 : ''
}
})
this.addRowToFirstPosition(newRow)
Expand Down

0 comments on commit 888c21a

Please sign in to comment.