Skip to content

JS Error When Launching "Temporary Schedule" Dialog from Override List #3377

@mastercactapus

Description

@mastercactapus

Describe the Bug:
Attempting to create an override of type "Temporary Schedule" by navigating to SomeSchedule > Quick Links > Overrides > Create Override results in a JavaScript error. The error message indicates an undefined property being read from 'map' in TempSchedDialog.tsx. This appears to only occur when launching the "Temporary Schedule" dialog from the override list.

Steps to Reproduce:

  1. Go to SomeSchedule
  2. Navigate to Quick Links
  3. From there, go to Overrides
  4. Click on Create Override
  5. Select temporary schedule
  6. See JavaScript error in console, "Sorry, an error occurred" on the page

Expected Behavior:
The "Temporary Schedule" dialog should appear without any error.

Observed Behavior:
A JavaScript error occurs: "react-dom.production.min.js:189 TypeError: Cannot read properties of undefined (reading 'map')
at nI (TempSchedDialog.tsx:102:8)"

Screenshots/Stack Traces:

react-dom.production.min.js:189 TypeError: Cannot read properties of undefined (reading 'map')
    at nI (TempSchedDialog.tsx:102:8)

image
image
image

Application Version:
The issue was observed in the release version (v0.31.1) and in the nightly build.

Desktop:
This issue seems to affect all operating systems and browsers.

Additional Context:
This bug seems specific to launching the "Temporary Schedule" dialog from the override list.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions