Skip to content

Commit

Permalink
fix loader test
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Aug 21, 2020
1 parent 7017916 commit 6e545ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ describe('loader', () => {
indexPatterns: {
'2': sampleIndexPatterns['2'],
},
layers: { layerb: { ...savedState.layers.layerb, indexPatternId: 'b' } },
layers: { layerb: { ...savedState.layers.layerb, indexPatternId: '2' } },
});

expect(storage.set).toHaveBeenCalledWith('lens-settings', {
Expand Down
8 changes: 1 addition & 7 deletions x-pack/plugins/lens/public/indexpattern_datasource/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@

import _ from 'lodash';
import { IStorageWrapper } from 'src/plugins/kibana_utils/public';
import {
SavedObjectsClientContract,
SavedObjectAttributes,
HttpSetup,
SavedObjectReference,
} from 'kibana/public';
import { SimpleSavedObject } from 'kibana/public';
import { SavedObjectsClientContract, HttpSetup, SavedObjectReference } from 'kibana/public';
import { StateSetter } from '../types';
import {
IndexPattern,
Expand Down

0 comments on commit 6e545ce

Please sign in to comment.