Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Boccanfuso committed Oct 20, 2023
1 parent 2c260ea commit 1f79557
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions platform/core/src/services/ToolBarService/ToolbarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,16 +322,11 @@ export default class ToolbarService extends PubSubService {
* identifiers to schema/values that can be used to render the buttons.
*
* @param key - the tool group id
* @param props - to apply to the secitons
* @param props - to apply to the sections
* @param defaultKey - what key to return if the given section isn't defined
*/
getButtonSection(
key: string,
props?: Record<string, unknown>,
defaultKey = 'primary'
) {
const buttonSectionIds =
this.buttonSections[key] || this.buttonSections[defaultKey];
getButtonSection(key: string, props?: Record<string, unknown>, defaultKey = 'primary') {
const buttonSectionIds = this.buttonSections[key] || this.buttonSections[defaultKey];
const buttonsInSection = [];

if (buttonSectionIds && buttonSectionIds.length !== 0) {
Expand Down

0 comments on commit 1f79557

Please sign in to comment.