mirror of https://github.com/mue/mue.git
fix(react): Adding `this.getItem()` within not found clause fixes items not showing
This commit is contained in:
parent
3503e65039
commit
8e1b7ab2ac
|
@ -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(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { render } from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
import * as Sentry from '@sentry/react';
|
||||
|
||||
|
@ -26,9 +26,5 @@ Sentry.init({
|
|||
});
|
||||
|
||||
const container = document.getElementById('root');
|
||||
render(<App />, container);
|
||||
|
||||
// TODO: Fix marketplace not loading on react 18 before upgrading
|
||||
// import { createRoot } from 'react-dom/client';
|
||||
// const root = createRoot(container);
|
||||
// root.render(<App />);
|
||||
const root = createRoot(container);
|
||||
root.render(<App />);
|
||||
|
|
Loading…
Reference in New Issue