mirror of
https://github.com/mue/mue.git
synced 2026-07-14 12:34:03 +02:00
fix(react): Adding this.getItem() within not found clause fixes items not showing
This commit is contained in:
@@ -289,9 +289,8 @@ class Marketplace extends PureComponent {
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: Fix marketplace not loading on react 18, this is a temporary fix but ungraceful
|
||||
// this.getItems();
|
||||
if (!this.state.items || this.state.items?.length === 0) {
|
||||
this.getItems();
|
||||
return (
|
||||
<>
|
||||
{errorMessage(
|
||||
|
||||
Reference in New Issue
Block a user