fix: validation of public and private assets (#5878)
This commit is contained in:
parent
6f8df3279c
commit
c940a2921e
3 changed files with 9 additions and 11 deletions
|
|
@ -248,7 +248,7 @@ export const CustomImageBlock: React.FC<CustomImageBlockProps> = (props) => {
|
|||
try {
|
||||
setHasErroredOnFirstLoad(true);
|
||||
// this is a type error from tiptap, don't remove await until it's fixed
|
||||
await editor?.commands.restoreImage?.(remoteImageSrc);
|
||||
await editor?.commands.restoreImage?.(node.attrs.src);
|
||||
imageRef.current.src = remoteImageSrc;
|
||||
} catch {
|
||||
// if the image failed to even restore, then show the error state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue