Skip to content

Commit

Permalink
Get fieldFormats from fieldFormats plugin rather than data plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
criamico committed Feb 16, 2022
1 parent f3eeaf0 commit 77904e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ import { DataStreamRowActions } from './components/data_stream_row_actions';
export const DataStreamListPage: React.FunctionComponent<{}> = () => {
useBreadcrumbs('data_streams');

const {
data: { fieldFormats },
} = useStartServices();
const { fieldFormats } = useStartServices();

const { pagination, pageSizeOptions } = usePagination();

Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/fleet/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import type {
DataPublicPluginSetup,
DataPublicPluginStart,
} from '../../../../src/plugins/data/public';
import type { FieldFormatsStart } from '../../../../src/plugins/field_formats/public/index';
import { FeatureCatalogueCategory } from '../../../../src/plugins/home/public';
import type { HomePublicPluginSetup } from '../../../../src/plugins/home/public';
import { Storage } from '../../../../src/plugins/kibana_utils/public';
Expand Down Expand Up @@ -93,6 +94,7 @@ export interface FleetSetupDeps {

export interface FleetStartDeps {
data: DataPublicPluginStart;
fieldFormats: FieldFormatsStart;
navigation: NavigationPublicPluginStart;
customIntegrations: CustomIntegrationsStart;
share: SharePluginStart;
Expand Down

0 comments on commit 77904e0

Please sign in to comment.