From b98ab3d9523925a75a51ee6390c752557f98369c Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Sat, 18 Jan 2025 13:03:12 +0900 Subject: [PATCH] Video: fix react component warning error --- packages/block-library/src/video/edit-common-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/video/edit-common-settings.js b/packages/block-library/src/video/edit-common-settings.js index 4f85f929b07cf..96d59d7e2f726 100644 --- a/packages/block-library/src/video/edit-common-settings.js +++ b/packages/block-library/src/video/edit-common-settings.js @@ -125,7 +125,7 @@ const VideoSettings = ( { setAttributes, attributes } ) => { /* translators: Setting to play videos within the webpage on mobile browsers rather than opening in a fullscreen player. */ label={ __( 'Play inline' ) } onChange={ toggleFactory.playsInline } - checked={ playsInline } + checked={ !! playsInline } help={ __( 'When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.' ) }