Skip to content

Commit

Permalink
use specific import for react-is
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed Apr 15, 2022
1 parent 3c8830f commit bf4e981
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React, { ReactElement } from 'react';
import * as ReactIs from 'react-is';
import { isFragment } from 'react-is';
import { IStorageWrapper } from 'src/plugins/kibana_utils/public';
import { getIndexPatternDatasource, GenericIndexPatternColumn } from './indexpattern';
import { DatasourcePublicAPI, Datasource, FramePublicAPI, OperationDescriptor } from '../types';
Expand Down Expand Up @@ -2368,7 +2368,7 @@ describe('IndexPattern Data Source', () => {

const extractTranslationIdsFromWarnings = (warnings: React.ReactNode[] | undefined) =>
warnings?.map((item) =>
ReactIs.isFragment(item)
isFragment(item)
? (item as ReactElement).props.children[0].props.id
: (item as ReactElement).props.id
);
Expand Down

0 comments on commit bf4e981

Please sign in to comment.