Skip to content

Commit fc4294e

Browse files
committed
fix: set default cell value using column's parseValue function
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
1 parent b4bacc9 commit fc4294e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/shared/components/ncTable/NcTable.vue‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,9 @@ export default {
334334
cell = row.data.find(item => item && item.columnId === column.id)
335335
}
336336
337-
// if we don't have a value for this cell
338337
if (cell === undefined) {
339-
if (searchString) {
340-
searchStatus = false
341-
}
342-
cell = { columnId: column.id, value: null }
338+
const defaultValue = typeof column.default === 'function' ? column.default() : null
339+
cell = { columnId: column.id, value: column.parseValue(defaultValue) }
343340
}
344341
// cleanup possible old markers
345342
delete cell.searchStringFound

0 commit comments

Comments
 (0)