Skip to content

Commit

Permalink
Merge pull request #153 from developmentseed/fix/checkpoint-selector-…
Browse files Browse the repository at this point in the history
…race-condition

Fix checkpoint selector race condition
  • Loading branch information
vgeorge authored Mar 19, 2024
2 parents 4a937e3 + 08ffd8d commit 1fdce4a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ function CheckpointSelector() {

if (sessionMode === SESSION_MODES.LOADING) {
selectedOptionLabel = 'Loading...';
} else if (!checkpointList || checkpointList?.length === 0) {
} else if (
!checkpointList ||
checkpointList?.length === 0 ||
!currentCheckpoint
) {
selectedOptionLabel = 'Run model to create first checkpoint';
} else {
selectedOptionLabel = getCheckpointLabel(currentCheckpoint);
Expand Down

0 comments on commit 1fdce4a

Please sign in to comment.