diff --git a/packages/base-manager/src/manager-base.ts b/packages/base-manager/src/manager-base.ts index 7f578fd9ed..fb7fbcd303 100644 --- a/packages/base-manager/src/manager-base.ts +++ b/packages/base-manager/src/manager-base.ts @@ -217,7 +217,7 @@ export abstract class ManagerBase implements IWidgetManager { async get_model(model_id: string): Promise { let i = 0; while (!this._models[model_id] && i < this._sleepTimes.length) { - new Promise((resolve) => setTimeout(resolve, this._sleepTimes[i++])); + await new Promise((resolve) => setTimeout(resolve, this._sleepTimes[i++])); } const modelPromise = this._models[model_id]; if (modelPromise === undefined) {