Skip to content

Commit

Permalink
Merge branch 'hotfix/block-type-table' into feature/173-block-constru…
Browse files Browse the repository at this point in the history
…ctors
  • Loading branch information
amberpixels committed Dec 20, 2024
2 parents 2b92f99 + f4a71bd commit ed3dcef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,14 @@ type TableRow struct {

func NewTableRowBlock(tr TableRow) *TableRowBlock {
return &TableRowBlock{
BasicBlock: NewBasicBlock(BlockTypeTableRowBlock),
BasicBlock: NewBasicBlock(BlockTypeTableRow),
TableRow: tr,
}
}

func NewTableBlock(table Table) *TableBlock {
return &TableBlock{
BasicBlock: NewBasicBlock(BlockTypeTableBlock),
BasicBlock: NewBasicBlock(BlockTypeTable),
Table: table,
}
}
Expand Down Expand Up @@ -1088,9 +1088,9 @@ func decodeBlock(raw map[string]interface{}) (Block, error) {
b = &TemplateBlock{}
case BlockTypeSyncedBlock:
b = &SyncedBlock{}
case BlockTypeTableBlock:
case BlockTypeTable:
b = &TableBlock{}
case BlockTypeTableRowBlock:
case BlockTypeTableRow:
b = &TableRowBlock{}
case BlockTypeUnsupported:
b = &UnsupportedBlock{}
Expand Down
4 changes: 2 additions & 2 deletions const.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ const (
BlockTypeLinkToPage BlockType = "link_to_page"
BlockTypeTemplate BlockType = "template"
BlockTypeSyncedBlock BlockType = "synced_block"
BlockTypeTableBlock BlockType = "table"
BlockTypeTableRowBlock BlockType = "table_row"
BlockTypeTable BlockType = "table"
BlockTypeTableRow BlockType = "table_row"
BlockTypeUnsupported BlockType = "unsupported"
)

Expand Down

0 comments on commit ed3dcef

Please sign in to comment.