diff --git a/src/view/image.tsx b/src/view/image.tsx index 9dc67ae5..1df5e3b2 100644 --- a/src/view/image.tsx +++ b/src/view/image.tsx @@ -61,8 +61,17 @@ class SimpleImageRenderer extends React.Component< } render() { + let dataBlob = this.props.data; + if (dataBlob == null || dataBlob.notFound) { + return ( +
+
+ ERROR: file {dataBlob && dataBlob.name ? JSON.stringify(dataBlob.name) : ""} not found +
+
+ ); + } if (this.objUrl == null) { - let dataBlob = this.props.data; this.objUrl = URL.createObjectURL(dataBlob); } let opts = this.props.opts;