Skip to content

Commit 1d38eb9

Browse files
committed
Revert package update from 527e734
1 parent b96cf12 commit 1d38eb9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/blocks/table-row.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<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+
>
48
<div :class="{ 'notion-simple-table-header': isHeader(columnIndex) }">
59
<div class="notion-simple-table-cell-text">
610
<NotionTextRenderer :text="cell(columnId)" v-bind="pass" />
@@ -34,8 +38,8 @@ export default {
3438
},
3539
methods: {
3640
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]];
3943
},
4044
isHeader(columnIndex) {
4145
return (

0 commit comments

Comments
 (0)