diff --git a/packages/statusbar/src/defaults/kernelStatus.tsx b/packages/statusbar/src/defaults/kernelStatus.tsx index 503fd27d8eac..23a6f0f59b80 100644 --- a/packages/statusbar/src/defaults/kernelStatus.tsx +++ b/packages/statusbar/src/defaults/kernelStatus.tsx @@ -185,13 +185,13 @@ export namespace KernelStatus { // sync setting of status and display name this._kernelStatus = newValue.status; this._kernelName = spec.display_name; + this._triggerChange(oldState, this._getAllState()); }); } else { this._kernelStatus = 'unknown'; this._kernelName = 'unknown'; + this._triggerChange(oldState, this._getAllState()); } - - this._triggerChange(oldState, this._getAllState()); }; private _getAllState(): [string, string, string] {