mirror of
https://github.com/mue/mue.git
synced 2026-07-21 07:54:13 +02:00
fix: marketplace undefined errors
This commit is contained in:
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user