Skip to content

Commit

Permalink
Fix isParentSelected conditional
Browse files Browse the repository at this point in the history
Co-authored-by: Addison Stavlo <Stavz01@gmail.com>
  • Loading branch information
jeyip and Addison-Stavlo authored Aug 31, 2020
1 parent f12cb55 commit d150f58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function BlockListAppender( {
// Render the default block appender when renderAppender has not been
// provided and the context supports use of the default appender.
const isDocumentAppender = ! rootClientId;
const isParentSelected = selectedBlockClientId !== rootClientId;
const isParentSelected = selectedBlockClientId === rootClientId;
const isAnotherDefaultAppenderAlreadyDisplayed =
selectedBlockClientId &&
! blockClientIds.includes( selectedBlockClientId );
Expand Down

0 comments on commit d150f58

Please sign in to comment.