Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a425909

Browse files
author
Luke Barnard
committed
Get rid of react key warning when no results
1 parent f99fa3a commit a425909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/elements/Dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default class Dropdown extends React.Component {
254254
);
255255
});
256256
if (options.length === 0) {
257-
return [<div className="mx_Dropdown_option">
257+
return [<div key="0" className="mx_Dropdown_option">
258258
No results
259259
</div>];
260260
}

0 commit comments

Comments
 (0)