Fix NPE on ScheduleForm (#1410)
# What this PR does Fixes NPE on `<ScheduleForm />` when the schedule has not been loaded.
This commit is contained in:
parent
04c42e2796
commit
c0873007b0
1 changed files with 2 additions and 2 deletions
|
|
@ -241,9 +241,9 @@ class SchedulePage extends React.Component<SchedulePageProps, SchedulePageState>
|
|||
</div>
|
||||
</VerticalGroup>
|
||||
</div>
|
||||
{showEditForm && (
|
||||
{showEditForm && schedule && (
|
||||
<ScheduleForm
|
||||
id={schedule.id}
|
||||
id={scheduleId}
|
||||
onUpdate={this.update}
|
||||
onHide={() => {
|
||||
this.setState({ showEditForm: false });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue