Skip to content

Commit

Permalink
Regression: Remove dangling console.log (#24034)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Dec 27, 2021
1 parent 518117c commit ce27f1a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions app/ui-message/client/ActionButtonSyncer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ export const removeButton = (button: IUIActionButton): void => {
}
};

export const loadButtons = (): Promise<void> => APIClient.get('apps/actionButtons')
.then((value: Array<IUIActionButton>) => {
registeredButtons.forEach((button) => removeButton(button));
registeredButtons = [];
value.map(addButton);
return registeredButtons;
})
.then(console.log)
.catch(console.error);
export const loadButtons = (): Promise<void> =>
APIClient.get('apps/actionButtons')
.then((value: Array<IUIActionButton>) => {
registeredButtons.forEach((button) => removeButton(button));
registeredButtons = [];
value.map(addButton);
});

Meteor.startup(() => loadButtons());

0 comments on commit ce27f1a

Please sign in to comment.