mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 05:34:21 +03:00
fix: once block type changed, the TextBlock node should be re-render (#551)
This commit is contained in:
parent
14f50cd821
commit
b59b010dec
@ -266,6 +266,8 @@ export const TextView = ({
|
||||
>
|
||||
<BlockPendantProvider editor={editor} block={block}>
|
||||
<TextBlock
|
||||
// Once the block type changed, this node should be re-render
|
||||
key={`${block.id}_${block.type}`}
|
||||
block={block}
|
||||
type={block.type}
|
||||
editor={editor}
|
||||
|
Loading…
Reference in New Issue
Block a user