Skip to content

Commit

Permalink
🔇 Remove debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Aug 4, 2020
1 parent d5025d4 commit 688576c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
3 changes: 0 additions & 3 deletions src/plugins/embeddable/public/lib/containers/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ export abstract class Container<
throw new PanelNotFoundError();
}
const panelState: PanelState = this.input.panels[embeddableId];
if (!panelState.explicitInput) {
// console.log('No data in here!', embeddableId, panelState);
}
return panelState as PanelState<TEmbeddableInput>;
}

Expand Down
12 changes: 3 additions & 9 deletions src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,9 @@ export class EmbeddablePanel extends React.Component<Props, State> {
}

private async refreshNotifications() {
let notifications;
// TODO: remove this try/catch
try {
notifications = await this.props.getActions(PANEL_NOTIFICATION_TRIGGER, {
embeddable: this.props.embeddable,
});
} catch (e) {
return;
}
let notifications = await this.props.getActions(PANEL_NOTIFICATION_TRIGGER, {
embeddable: this.props.embeddable,
});
if (!this.mounted) return;

const { disabledActions } = this.props.embeddable.getInput();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ export class PanelNotificationsAction implements ActionDefinition<EnhancedEmbedd

public readonly isCompatible = async ({ embeddable }: EnhancedEmbeddableContext) => {
if (embeddable.getInput().viewMode !== ViewMode.EDIT) return false;
// TODO: remove this later on
if (!embeddable.enhancements) return false;
return this.getEventCount(embeddable) > 0;
};

Expand Down

0 comments on commit 688576c

Please sign in to comment.