Skip to content

Commit 7ea5393

Browse files
committed
fix conflicts
1 parent c44d41d commit 7ea5393

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/overview/overview/monitor_detail_flyout.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,13 @@ function LocationSelect({
246246
export function MonitorDetailFlyout(props: Props) {
247247
const { id, onLocationChange } = props;
248248
const {
249-
data: { pages },
249+
data: { monitors },
250250
} = useSelector(selectOverviewState);
251251

252252
const monitor: MonitorOverviewItem | undefined = useMemo(() => {
253-
for (const key of Object.keys(pages)) {
254-
const overviewItem = pages[key].filter(({ id: overviewItemId }) => overviewItemId === id)[0];
255-
if (overviewItem) return overviewItem;
256-
}
257-
}, [id, pages]);
253+
const overviewItem = monitors.filter(({ id: overviewItemId }) => overviewItemId === id)[0];
254+
if (overviewItem) return overviewItem;
255+
}, [id, monitors]);
258256

259257
const setLocation = useCallback(
260258
(location: string) => onLocationChange(id, location),

0 commit comments

Comments
 (0)