Skip to content

Commit

Permalink
fix scripted field add button
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Feb 8, 2022
1 parent 43d890e commit cfc379f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ interface HeaderProps extends RouteComponentProps {
}

export const Header = withRouter(({ indexPatternId, history }: HeaderProps) => {
const { application, docLinks } = useKibana<IndexPatternManagmentContext>().services;
const { dataViews, docLinks } = useKibana<IndexPatternManagmentContext>().services;
const links = docLinks?.links;
const userEditPermission = !!application?.capabilities?.indexPatterns?.save;
const userEditPermission = dataViews.getCanSaveSync();
return (
<EuiFlexGroup alignItems="center">
<EuiFlexItem>
Expand Down

0 comments on commit cfc379f

Please sign in to comment.