Skip to content

Commit

Permalink
fixed usage of capablities in details page
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Jan 29, 2020
1 parent 2961ecd commit 1520209
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ export const AlertDetails: React.FunctionComponent<AlertDetailsProps> = ({
unmuteAlert,
muteAlert,
}) => {
const {
legacy: { capabilities },
} = useAppDependencies();
const { capabilities } = useAppDependencies();

const canSave = hasSaveAlertsCapability(capabilities.get());
const canSave = hasSaveAlertsCapability(capabilities);

const actionTypesByTypeId = indexBy(actionTypes, 'id');
const [firstAction, ...otherActions] = alert.actions;
Expand Down

0 comments on commit 1520209

Please sign in to comment.