message: prevent crashes when staging image data is corrupt
diff: @@ -32,7 +32,12 @@ export const ImageCarousel = observer((props: ImageCarouselProps) => {
  const images: ImageDescriptor[] = useMemo(
  () =>
  - props.images.map(image => {
  + props.images
  + .map(image => {
  + if (!image.height || !image.width || !image.image_url) {
  + // something is very wrong
  + return null
  + }
  const { width, height } = fitInside(embeddedCardBoundingBox, image)
  return {
  width,
  @@ -44,12 +49,17 @@ export const ImageCarousel = observer((props: ImageCarouselProps) => {
  }),
  deepZoom: image.deepZoom,
  }
  - }),
  + })
  + .filter(Boolean),
  [props.images]
  )
  const context = useNewImageCarouselContext({ images })
  + if (images.length === 0) {
  + return null
  + }
  +
  return (
  <ImageCarouselContext.Provider value={context}>
  <Flex>
  