Skip to content

Commit

Permalink
fix browser warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin-pc committed Nov 4, 2024
1 parent 5829303 commit cfd64af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ const DefaultDiscoverTableUI = ({
(row: OpenSearchSearchHit, index: number) => {
return (
<TableRow
key={row._id}
// TODO: use the id from the row._id when all languages support retreving it
key={index}
row={row}
columns={displayedColumnNames}
indexPattern={indexPattern}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ export const DiscoverNoResults = ({ queryString, query, savedQuery, timeFieldNam
const tabs = useMemo(() => {
const buildSampleQueryBlock = (sampleTitle: string, sampleQuery: string) => {
return (
<>
<React.Fragment key={sampleTitle}>
<EuiText size="s">{sampleTitle}</EuiText>
<EuiSpacer size="s" />
<EuiCodeBlock isCopyable>{sampleQuery}</EuiCodeBlock>
<EuiSpacer size="s" />
</>
</React.Fragment>
);
};

Expand Down

0 comments on commit cfd64af

Please sign in to comment.