diff --git a/packages/convert/app/components/ConvertUi.tsx b/packages/convert/app/components/ConvertUi.tsx index e3ef3f98ed1..f7da698c333 100644 --- a/packages/convert/app/components/ConvertUi.tsx +++ b/packages/convert/app/components/ConvertUi.tsx @@ -68,7 +68,7 @@ export default function ConvertUI({ readonly tracks: TracksField | null; readonly videoThumbnailRef: React.RefObject; readonly unrotatedDimensions: Dimensions | null; - readonly dimensions: Dimensions | null; + readonly dimensions: Dimensions | null | undefined; readonly duration: number | null; readonly rotation: number | null; readonly inputContainer: ParseMediaContainer | null; @@ -101,7 +101,9 @@ export default function ConvertUI({ ); const [resizeOperation, setResizeOperation] = useState(() => { - return action.type === 'resize-format' || action.type === 'generic-resize' + return (action.type === 'resize-format' || + action.type === 'generic-resize') && + dimensions ? getInitialResizeSuggestion(dimensions) : null; });