mirror of https://github.com/mue/mue.git
fix: marketplace undefined errors
This commit is contained in:
parent
2684277a76
commit
713e0176c7
|
@ -77,8 +77,7 @@ function Items({
|
|||
</>
|
||||
) : null}
|
||||
<div className="items">
|
||||
{items
|
||||
.filter(
|
||||
{items?.filter(
|
||||
(item) =>
|
||||
item.name.toLowerCase().includes(filter.toLowerCase()) ||
|
||||
filter === '' ||
|
||||
|
|
|
@ -295,7 +295,7 @@ export default class Marketplace extends PureComponent {
|
|||
);
|
||||
};
|
||||
|
||||
if (this.state.items.length === 0) {
|
||||
if (this.state.items?.length === 0) {
|
||||
return (
|
||||
<>
|
||||
{featured()}
|
||||
|
|
Loading…
Reference in New Issue