Skip to content

Commit

Permalink
fix: fix render error for undefined toolbar group (#13124)
Browse files Browse the repository at this point in the history
  • Loading branch information
huzhixiao authored Nov 30, 2023
1 parent 487e92b commit fa52032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/toolbar/src/browser/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ export class ToolbarImpl extends TabBarToolbar {
tabIndex={0}
ref={this.assignRef}
>
{this.renderColumnWrapper(ToolbarAlignment.LEFT, leftGroups)}
{this.renderColumnWrapper(ToolbarAlignment.CENTER, centerGroups)}
{this.renderColumnWrapper(ToolbarAlignment.RIGHT, rightGroups)}
{leftGroups ? this.renderColumnWrapper(ToolbarAlignment.LEFT, leftGroups) : <></>}
{centerGroups ? this.renderColumnWrapper(ToolbarAlignment.CENTER, centerGroups) : <></>}
{rightGroups ? this.renderColumnWrapper(ToolbarAlignment.RIGHT, rightGroups) : <></>}
</div>
);
}
Expand Down

0 comments on commit fa52032

Please sign in to comment.