Get rid of react key warning when no results
This commit is contained in:
parent
f99fa3ac1a
commit
a425909b76
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ export default class Dropdown extends React.Component {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
if (options.length === 0) {
|
if (options.length === 0) {
|
||||||
return [<div className="mx_Dropdown_option">
|
return [<div key="0" className="mx_Dropdown_option">
|
||||||
No results
|
No results
|
||||||
</div>];
|
</div>];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue