Skip to content

Commit

Permalink
Use null instead of undefined as the prop when a custom placeholder i…
Browse files Browse the repository at this point in the history
…s not set

Co-authored-by: Douglas Henri <[email protected]>
  • Loading branch information
lhkowalski and dhasilva authored Sep 23, 2024
1 parent 1978323 commit fda7674
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ const blockEditWithAiComponents = createHigherOrderComponent( BlockEdit => {

{ showAiControl && (
<AiAssistantInput
customPlaceholder={ customPlaceholder ? customPlaceholder : undefined }
customPlaceholder={ customPlaceholder ? customPlaceholder : null }
className={ className }
requestingState={ requestingState }
requestingError={ error }
Expand Down

0 comments on commit fda7674

Please sign in to comment.