diff --git a/src/components/flow/Cell/index.tsx b/src/components/flow/Cell/index.tsx index 47422465..c687156f 100644 --- a/src/components/flow/Cell/index.tsx +++ b/src/components/flow/Cell/index.tsx @@ -102,9 +102,10 @@ const Cell: FC = ({ }, [id, flow, onChangeCellView]); const thumb = useMemo(() => { - const preset = THUMBNAIL_SIZES[flow.display] || THUMBNAIL_SIZES.default; + const preset = + (flow && flow.display && THUMBNAIL_SIZES[flow.display]) || THUMBNAIL_SIZES.default; return getURL({ url: thumbnail }, preset); - }, [thumbnail, flow.display]); + }, [thumbnail, flow]); return (