Skip to content

Commit

Permalink
Use const from core
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Jul 11, 2024
1 parent f0d0a9d commit 1ca33b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/apps/configuration/top-nav-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { DataSourceSelectableConfig } from 'src/plugins/data_source_management/p
import { DataSourceOption } from 'src/plugins/data_source_management/public/components/data_source_menu/types';
import { AppDependencies } from '../types';
import { setDataSourceInUrl } from '../../utils/datasource-utils';
import { SigV4ServiceName } from 'src/plugins/data_source/common/data_sources';

export interface TopNavMenuProps extends AppDependencies {
dataSourcePickerReadOnly: boolean;
Expand Down Expand Up @@ -59,7 +60,7 @@ export const SecurityPluginTopNavMenu = React.memo(
: undefined,
onSelectedDataSources: wrapSetDataSourceWithUpdateUrl,
fullWidth: true,
dataSourceFilter: (ds) => ds.attributes.auth.credentials?.service !== 'aoss',
dataSourceFilter: (ds) => ds.attributes.auth.credentials?.service !== SigV4ServiceName.OpenSearchServerless,
}}
/>
) : null;
Expand Down

0 comments on commit 1ca33b0

Please sign in to comment.