fix(react): Adding this.getItem() within not found clause fixes items not showing

This commit is contained in:
2024-02-08 14:05:37 +01:00
parent 3503e65039
commit 8e1b7ab2ac
2 changed files with 4 additions and 9 deletions

View File

@@ -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(