Skip to content

Commit ed3dcef

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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

block.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,14 @@ type TableRow struct {
537537

538538
func NewTableRowBlock(tr TableRow) *TableRowBlock {
539539
return &TableRowBlock{
540-
BasicBlock: NewBasicBlock(BlockTypeTableRowBlock),
540+
BasicBlock: NewBasicBlock(BlockTypeTableRow),
541541
TableRow: tr,
542542
}
543543
}
544544

545545
func NewTableBlock(table Table) *TableBlock {
546546
return &TableBlock{
547-
BasicBlock: NewBasicBlock(BlockTypeTableBlock),
547+
BasicBlock: NewBasicBlock(BlockTypeTable),
548548
Table: table,
549549
}
550550
}
@@ -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)