CoreTable column alignment returns null
brysonchiu opened this issue · comments
The core table block is returning null values for cell alignment even when it is set. The cell alignment is instead set by the whole table alignment. This seems like a mistake.
Steps to reproduce
- Add a core table into a page and adjust the alignment on a column (not the alignment of the table).
- Add this into your page query:
editorBlocks {
... on CoreTable {
attributes {
body {
cells {
align
}
}
foot {
cells {
align
}
}
head {
cells {
align
}
}
}
}
}
Can also add to this that we are seeing all of our CoreTable cell values return null. Most concerning, content
returns null even though I can confirm we have content in all of our test body cells.
"body": [
{
"cells": [
{
"align": null,
"colspan": null,
"content": null,
"rowspan": null,
"scope": null
},
{
"align": null,
"colspan": null,
"content": null,
"rowspan": null,
"scope": null
}
]
},
Hey @phillubliner and @brysonchiu I've reproduced this issue and I will provide a fix soon.
https://github.com/wpengine/wp-graphql-content-blocks/releases/tag/v4.0.1
Should contain a fix for this issue. I'm closing this ticket but feel free to comment back if you still have any problems.
content
is still null