Skip to content

Commit c28e7d3

Browse files
committed
[ML] fix range selection for embeddable
1 parent 5c36d51 commit c28e7d3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

x-pack/plugins/ml/public/embeddables/anomaly_swimlane/embeddable_swim_lane_container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const EmbeddableSwimLaneContainer: FC<ExplorerSwimlaneContainerProps> = (
8989
});
9090
}
9191
},
92-
[swimlaneData, perPage, fromPage]
92+
[swimlaneData, perPage, fromPage, setSelectedCells]
9393
);
9494

9595
if (error) {

x-pack/plugins/ml/public/ui_actions/apply_time_range_action.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ export function createApplyTimeRangeSelectionAction(
3939

4040
let [from, to] = data.times;
4141
from = from * 1000;
42-
// extend bounds with the interval
43-
to = to * 1000 + interval * 1000;
42+
to = to * 1000;
4443

4544
timefilter.setTime({
4645
from: moment(from),

0 commit comments

Comments
 (0)