Skip to content

Commit

Permalink
Fix React key prop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed May 14, 2020
1 parent b55305b commit b5c807d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export const DatasourcesTable: React.FunctionComponent<Props> = ({
search={{
toolsRight: [
<EuiButton
key="addDatasourceButton"
isDisabled={!hasWriteCapabilities}
iconType="plusInCircle"
href={addDatasourceLink}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ export const DataStreamListPage: React.FunctionComponent<{}> = () => {
sorting={true}
search={{
toolsRight: [
<EuiButton color="primary" iconType="refresh" onClick={() => sendRequest()}>
<EuiButton
key="reloadButton"
color="primary"
iconType="refresh"
onClick={() => sendRequest()}
>
<FormattedMessage
id="xpack.ingestManager.dataStreamList.reloadDataStreamsButtonText"
defaultMessage="Reload"
Expand Down

0 comments on commit b5c807d

Please sign in to comment.