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

[Scenario Bundles]: App breaks in some cases if one selects the "Sectors and Technology" tab #1939

Open
1 task
jh-RLI opened this issue Feb 21, 2025 · 1 comment
Assignees
Labels
bug priority: critical 🔥 Critical priority Scenario Bundle Feature of the oeplatform.

Comments

@jh-RLI
Copy link
Contributor

jh-RLI commented Feb 21, 2025

Description of the issue

Describe the problem in as much detail as possible.
Focus on the expected and current behavior.
If necessary, create a screenshot and insert below.

Steps to Reproduce

  1. Go to https://openenergyplatform.org/scenario-bundles/id/b5e3f952-889c-0154-36e2-b8546d9d9390
  2. Click "Sectors and Technology"

This error is raised:

useTreeViewItems.js:23 Uncaught Error: MUI X: The Tree View component requires all items to have a unique `id` property.
Alternatively, you can use the `getItemId` prop to specify a custom id for each item.
An item was provided without id in the `items` prop:
{"value":"onshore wind power technology","label":"onshore wind power technology","class":"http://openenergy-platform.org/ontology/oeo/OEO_00010425"}
    at e (useTreeViewItems.js:23:13)
    at useTreeViewItems.js:49:25
    at Array.forEach (<anonymous>)
    at zu (useTreeViewItems.js:49:9)
    at Bu.getInitialState (useTreeViewItems.js:196:10)
    at useTreeView.js:51:36
    at Array.forEach (<anonymous>)
    at useTreeView.js:49:13
    at Object.va [as useState] (react-dom.production.min.js:165:102)
    at t.useState (react.production.min.js:23:281)

Ideas of solution

Recently, i fixed another bug causing a memory overflow by passing properties from a React component. I assume these props are now missing in the T&S tab.

Context and Environment

  • Version used:
  • Operating system:
  • Environment setup and (python) version:

Workflow checklist

@jh-RLI jh-RLI added bug Scenario Bundle Feature of the oeplatform. priority: critical 🔥 Critical priority labels Feb 21, 2025
@jh-RLI jh-RLI self-assigned this Feb 21, 2025
@jh-RLI
Copy link
Contributor Author

jh-RLI commented Feb 21, 2025

Another issue: There is a js error one a user accesses a scenario bundle detail page

scenarioBundle.js:428 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'children')
    at scenarioBundle.js:428:51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority: critical 🔥 Critical priority Scenario Bundle Feature of the oeplatform.
Projects
Development

No branches or pull requests

1 participant