From d2ecd8f769ec74165d3ba09fef7da564d59b76dd Mon Sep 17 00:00:00 2001 From: Joseph Thomas Date: Sat, 11 Jul 2020 19:28:15 -0700 Subject: [PATCH] fix(sanity-plugin): fix type errors --- .../sanity-plugin/src/sanityObjects/shopifyImage.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/sanity-plugin/src/sanityObjects/shopifyImage.tsx b/packages/sanity-plugin/src/sanityObjects/shopifyImage.tsx index 9a5eee3..0f07ad8 100644 --- a/packages/sanity-plugin/src/sanityObjects/shopifyImage.tsx +++ b/packages/sanity-plugin/src/sanityObjects/shopifyImage.tsx @@ -1,6 +1,7 @@ import * as React from 'react' import { Paginated } from '@good-idea/unwind-edges' import { ShopifyImage } from '@sane-shopify/types' +import { definitely } from '@sane-shopify/sync-utils' interface ImagesPreviewProps { value: Paginated @@ -8,11 +9,11 @@ interface ImagesPreviewProps { const ImagesPreview = (props: ImagesPreviewProps) => { return ( <> - {props.value.edges.map((edge) => ( + {definitely(props.value.edges).map((edge) => ( {edge.node.altText} ))}