From 993571e90ada02286098bf341c885c1b4f5627ca Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:04:54 +0900 Subject: [PATCH] Fix browser warning error when clicking the reset button (#505) --- src/demo-text-input/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo-text-input/index.js b/src/demo-text-input/index.js index b48ac5a7..c9a592c4 100644 --- a/src/demo-text-input/index.js +++ b/src/demo-text-input/index.js @@ -82,7 +82,7 @@ function DemoTextInput( { axes, setAxes, resetAxes } ) { onClick={ () => { resetDefaults( 'sentence' ); handleDemoTypeChange( 'sentence' ); - resetAxes(); + resetAxes?.(); } } > { __( 'Reset', 'create-block-theme' ) }