Skip to content

Commit

Permalink
Fix browser warning error when clicking the reset button (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Jan 15, 2024
1 parent cef22d8 commit 993571e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo-text-input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function DemoTextInput( { axes, setAxes, resetAxes } ) {
onClick={ () => {
resetDefaults( 'sentence' );
handleDemoTypeChange( 'sentence' );
resetAxes();
resetAxes?.();
} }
>
{ __( 'Reset', 'create-block-theme' ) }
Expand Down

0 comments on commit 993571e

Please sign in to comment.