diff --git a/public/app/features/explore/PrometheusListView/RawListContainer.tsx b/public/app/features/explore/PrometheusListView/RawListContainer.tsx index 08d1c0e0331..f3f368cd89b 100644 --- a/public/app/features/explore/PrometheusListView/RawListContainer.tsx +++ b/public/app/features/explore/PrometheusListView/RawListContainer.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/css'; import { cloneDeep } from 'lodash'; -import React, { useEffect, useRef, useState } from 'react'; +import React, { useEffect, useId, useRef, useState } from 'react'; import { useWindowSize } from 'react-use'; import { VariableSizeList as List } from 'react-window'; @@ -113,12 +113,14 @@ const RawListContainer = (props: RawListContainerProps) => { return 1.5 * singleLineHeight + (Object.keys(item).length - valueLabels.length) * additionalLineHeight; }; + const switchId = `isExpandedView ${useId()}`; + return (
- +