Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http://localhost:3000/system crash under superadmin credential #545

Open
rizaon opened this issue Oct 21, 2023 · 1 comment
Open

http://localhost:3000/system crash under superadmin credential #545

rizaon opened this issue Oct 21, 2023 · 1 comment

Comments

@rizaon
Copy link
Contributor

rizaon commented Oct 21, 2023

Opening http://localhost:3000/system using superadmin crash with following error messages:

Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'id')
renderContent

src/components/ContentWithSidebar/ContentWithSidebar.jsx:127
  124 |   return <RouteC key={item.id} {...props} />;
  125 | });
  126 | 
> 127 | const redirect = items[0].id !== '@' && <Redirect exact from={match.url} to={resolveUrl(match.url, items[0].id)} />;
      | ^  128 | 
  129 | return (
  130 |   <div>

p.ContentWithSidebar [as constructor]
src/components/ContentWithSidebar/ContentWithSidebar.jsx:157
  154 | return (
  155 |   <ContentAndSidebar
  156 |     sidebarElement={renderSidebar()}
> 157 |     contentElement={renderContent()}
      | ^  158 |     stickyWidget={renderStickyWidget()}
  159 |     smallContent={smallContent}
  160 |   />
@fushar
Copy link
Member

fushar commented Oct 22, 2023

This System tab is moving soon from judgels-client to judgels-server (admin UI).

Won't fix this, but keeping this open until we move it to admin UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants