File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export function ScheduleInspector({
145145 </ Property . Item >
146146 < Property . Item >
147147 < Property . Label > Window</ Property . Label >
148- < Property . Value > { schedule . window } </ Property . Value >
148+ < Property . Value > { schedule . window ?? "-" } </ Property . Value >
149149 </ Property . Item >
150150 < Property . Item className = "gap-1" >
151151 < Property . Label > Environment</ Property . Label >
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export class ViewSchedulePresenter {
8787 const instance = schedule . instances . find (
8888 ( instance ) => instance . environmentId === environmentId
8989 ) ;
90- if ( ! instance ) {
90+ if ( ! instance && schedule . instances . length > 0 ) {
9191 return ;
9292 }
9393
@@ -97,7 +97,7 @@ export class ViewSchedulePresenter {
9797 timezone : schedule . timezone ,
9898 deduplicationKey : schedule . deduplicationKey ,
9999 environmentId,
100- schedulePhase : instance . schedulePhase ,
100+ schedulePhase : instance ? .schedulePhase ?? null ,
101101 phaseSecret : env . ENCRYPTION_KEY ,
102102 windowDurationSeconds : schedule . windowDurationSeconds ,
103103 windowPercentage : schedule . windowPercentage ,
You can’t perform that action at this time.
0 commit comments