File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<tr class =" notion-simple-table-row" >
3
- <td v-for =" (columnId, columnIndex) in columns" :key =" columnIndex" class =" notion-simple-table-data" >
3
+ <td
4
+ v-for =" (columnId, columnIndex) in columns"
5
+ :key =" columnIndex"
6
+ class =" notion-simple-table-data"
7
+ >
4
8
<div :class =" { 'notion-simple-table-header': isHeader(columnIndex) }" >
5
9
<div class =" notion-simple-table-cell-text" >
6
10
<NotionTextRenderer :text =" cell(columnId)" v-bind =" pass" />
@@ -34,8 +38,8 @@ export default {
34
38
},
35
39
methods: {
36
40
cell (columnId ) {
37
- if ( this ? . properties ? .[columnId] == null ) return [[ " " , false ]] // return empty notion decorated text if row is empty
38
- return this ? .properties ? .[columnId]
41
+ // return empty notion decorated text if row is empty
42
+ return this ? .properties ? .[columnId] ?? [[ " " , false ]];
39
43
},
40
44
isHeader (columnIndex ) {
41
45
return (
You can’t perform that action at this time.
0 commit comments