fix: SqlEditor_spec tests (#13186)

This commit is contained in:
Michael S. Molina
2021-02-22 01:49:51 -03:00
committed by GitHub
parent d8bd8ec896
commit 7ee8d114d2
2 changed files with 25 additions and 10 deletions

View File

@@ -547,7 +547,10 @@ class SqlEditor extends React.PureComponent {
return (
<AntdMenu>
{[...new Set(LIMIT_DROPDOWN)].map(limit => (
<AntdMenu.Item onClick={() => this.setQueryLimit(limit)}>
<AntdMenu.Item
key={`${limit}`}
onClick={() => this.setQueryLimit(limit)}
>
{/* // eslint-disable-line no-use-before-define */}
<a role="button" styling="link">
{this.convertToNumWithSpaces(limit)}