Skip to content

Commit fb87cab

Browse files
committed
fix(table): prevent recursive updates in renderCell by stringifying non-VNode results
1 parent 9890c2d commit fb87cab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/Table/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const renderCell = (column: Column, record: Recordable) => {
6565
const value = getValue(record, column.key)
6666
let result = column.customRender?.({ value, record }) ?? value ?? '-'
6767
if (!isVNode(result)) {
68-
result = h('div', result)
68+
result = h('div', String(result))
6969
}
7070
return result
7171
}

0 commit comments

Comments
 (0)