Skip to content

Commit

Permalink
fixup! fix: StartingStepOpenWorkspace render
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 committed Sep 30, 2024
1 parent 211933a commit 445a92d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,12 @@ class StartingStepOpenWorkspace extends ProgressStep<Props, State> {
render(): React.ReactNode {
const { distance, hasChildren } = this.props;
const { name, lastError } = this.state;

// status may flicker from starting to running and back to starting
// but we need to run the timer only when the workspace is running
const workspace = this.findTargetWorkspace(this.props);
const isActive = workspace?.isRunning && distance === 0;

const isError = false;
const isWarning = lastError !== undefined;

Expand Down

0 comments on commit 445a92d

Please sign in to comment.