@codecademy/gamut

73.6.373.6.4-alpha.215ece.0
dist/Markdown/libs/overrides/Video/index.js
~dist/Markdown/libs/overrides/Video/index.jsModified
+2−2
Index: package/dist/Markdown/libs/overrides/Video/index.js
===================================================================
--- package/dist/Markdown/libs/overrides/Video/index.js
+++ package/dist/Markdown/libs/overrides/Video/index.js
@@ -8,14 +8,14 @@
     // Sanitize the props to pass to the Video component
     const videoProps = {
       autoplay: props?.autoPlay,
       controls: props?.controls,
-      height: Number(props?.height),
+      height: props?.height ? Number(props.height) : undefined,
       loop: props?.loop,
       muted: props?.muted,
       videoTitle: props?.title,
       videoUrl: props?.src,
-      width: Number(props?.width),
+      width: props?.width ? Number(props.width) : undefined,
       textTracks: props?.textTracks,
       showPlayerEmbed: props?.showPlayerEmbed
     };
     return /*#__PURE__*/_jsx(Video, {