Skip to content

Commit

Permalink
remove unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Mar 3, 2020
1 parent 1f9910a commit 810d04e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,10 @@ export class EmbeddablePanel extends React.Component<Props, State> {
return bOrder - aOrder;
});

const contextMenu = await buildContextMenuForActions({
return await buildContextMenuForActions({
actions: sorted,
actionContext: { embeddable: this.props.embeddable },
closeMenu: this.closeMyContextMenuPanel,
});
return contextMenu;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,13 @@ export async function buildContextMenuForActions<A>({
title: i18n.translate('uiActions.actionPanel.title', {
defaultMessage: 'Options',
}),
// needs to take content instead of items
items: menuItems,
};
}

/**
* Transform an array of Actions into the shape needed to build an EUIContextMenu
*/
// needs to render content instead of array of items
async function buildEuiContextMenuPanelItems<A>({
actions,
actionContext,
Expand Down

0 comments on commit 810d04e

Please sign in to comment.