Skip to content

Commit 2982cd4

Browse files
fix: remoteImageSrc to come from resolved source (#5867)
1 parent 81550ab commit 2982cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/editor/src/core/extensions/custom-image/components/image-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const CustomImageBlock: React.FC<CustomImageBlockProps> = (props) => {
5959
src: remoteImageSrc,
6060
setEditorContainer,
6161
} = props;
62-
const { src: remoteImageSrc, width: nodeWidth, height: nodeHeight, aspectRatio: nodeAspectRatio } = node.attrs;
62+
const { width: nodeWidth, height: nodeHeight, aspectRatio: nodeAspectRatio } = node.attrs;
6363
// states
6464
const [size, setSize] = useState<Size>({
6565
width: ensurePixelString(nodeWidth, "35%"),

0 commit comments

Comments
 (0)