Skip to content

Commit 263b93f

Browse files
after saving, the substituted image blocks encounter an error
1 parent bb1e848 commit 263b93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block/image/substitute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const substitute = {
44
return [
55
'core/image',
66
{
7-
height: oldAttributes?.imageHeight,
7+
height: oldAttributes?.imageHeight ? ( oldAttributes?.imageHeight + 'px' ) : undefined,
88
url: oldAttributes?.imageUrl,
99
},
1010
]

0 commit comments

Comments
 (0)