Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Mar 4, 2020
1 parent be4519a commit cfc9227
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
EmbeddableExpression,
} from '../../expression_types';
import { getFunctionHelp } from '../../../i18n';
import { Filter as DataFilter } from '../../../../../../../src/plugins/data/public';

interface Arguments {
id: string;
Expand All @@ -31,7 +32,7 @@ export type SavedLensInput = EmbeddableInput & {
interval: number;
};
hideFilterActions: true;
filters: Filter[];
filters: DataFilter[];
};

const defaultTimeRange = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ export function embeddableInputToExpression(
`timerange={timerange from="${lensInput.timeRange.from}" to="${lensInput.timeRange.to}"}`
);
}

if (lensInput.hiddenLayers && lensInput.hiddenLayers.length) {
for (const layerId of lensInput.hiddenLayers) {
expressionParts.push(`hideLayer="${layerId}"`);
}
}
}

return expressionParts.join(' ');
Expand Down

0 comments on commit cfc9227

Please sign in to comment.