Skip to content

Commit

Permalink
fixing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Apr 15, 2024
1 parent d69f13a commit 30c6779
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ import {
useLensDispatch,
} from '../../../state_management';
import type { TypedLensByValueInput } from '../../../embeddable/embeddable_component';
import { EXPRESSION_BUILD_ERROR_ID, extractReferencesFromState } from '../../../utils';
import {
EXPRESSION_BUILD_ERROR_ID,
extractReferencesFromState,
getAbsoluteDateRange,
} from '../../../utils';
import { LayerConfiguration } from './layer_configuration_section';
import type { EditConfigPanelProps } from './types';
import { FlyoutWrapper } from './flyout_wrapper';
Expand Down Expand Up @@ -94,6 +98,10 @@ export function LensEditConfigurationFlyout({

const framePublicAPI = useLensSelector((state) => selectFramePublicAPI(state, datasourceMap));

framePublicAPI.absDateRange = getAbsoluteDateRange(
startDependencies.data.query.timefilter.timefilter
);

const layers = useMemo(
() => activeDatasource.getLayers(datasourceState),
[activeDatasource, datasourceState]
Expand Down

0 comments on commit 30c6779

Please sign in to comment.