Skip to content

Commit e4c3b10

Browse files
committed
Merge branch 'hotfix/block-type-table' into feature/173-block-constructors
2 parents 2b92f99 + f4a71bd commit e4c3b10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

block.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,9 +1088,9 @@ func decodeBlock(raw map[string]interface{}) (Block, error) {
10881088
b = &TemplateBlock{}
10891089
case BlockTypeSyncedBlock:
10901090
b = &SyncedBlock{}
1091-
case BlockTypeTableBlock:
1091+
case BlockTypeTable:
10921092
b = &TableBlock{}
1093-
case BlockTypeTableRowBlock:
1093+
case BlockTypeTableRow:
10941094
b = &TableRowBlock{}
10951095
case BlockTypeUnsupported:
10961096
b = &UnsupportedBlock{}

const.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ const (
238238
BlockTypeLinkToPage BlockType = "link_to_page"
239239
BlockTypeTemplate BlockType = "template"
240240
BlockTypeSyncedBlock BlockType = "synced_block"
241-
BlockTypeTableBlock BlockType = "table"
242-
BlockTypeTableRowBlock BlockType = "table_row"
241+
BlockTypeTable BlockType = "table"
242+
BlockTypeTableRow BlockType = "table_row"
243243
BlockTypeUnsupported BlockType = "unsupported"
244244
)
245245

0 commit comments

Comments
 (0)