Skip to content

Commit 148e3fd

Browse files
[example] fix incorrect isUploaded condition
1 parent d92b69c commit 148e3fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/react/src/components/Image/ImageEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Image } from './Image'
1111

1212
export function ImageEditor(props: NodeViewProps) {
1313
const { src, alt, uploadUrl, uploading, uploadError } = props.node.attrs as ImageAttributes
14-
const isUploaded = !src.startsWith('blob://http')
14+
const isUploaded = !src.startsWith('blob:http')
1515
return (
1616
<NodeViewWrapper
1717
data-drag-handle=''

examples/react/src/components/Video/VideoEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Video } from './Video'
1111

1212
export function VideoEditor(props: NodeViewProps) {
1313
const { src, alt, uploadError, uploadUrl, uploading } = props.node.attrs as VideoAttributes
14-
const isUploaded = !src.startsWith('blob://http')
14+
const isUploaded = !src.startsWith('blob:http')
1515
return (
1616
<NodeViewWrapper
1717
data-drag-handle=''

0 commit comments

Comments
 (0)