From 8e9ce24c6d6a216b9992dcac9a63fb3d01d50255 Mon Sep 17 00:00:00 2001 From: b-ma Date: Wed, 17 Jan 2024 17:44:37 +0100 Subject: [PATCH] hotfix: for #85 --- src/common/BaseSharedStateCollection.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/BaseSharedStateCollection.js b/src/common/BaseSharedStateCollection.js index e9d2c7b4..12bdeb0d 100644 --- a/src/common/BaseSharedStateCollection.js +++ b/src/common/BaseSharedStateCollection.js @@ -126,7 +126,11 @@ class BaseSharedStateCollection { * current call and will be passed as third argument to all update listeners. */ async set(updates, context = null) { - return await this._controller.set(updates, context); + // hot fix for https://github.com/collective-soundworks/soundworks/issues/85 + // to be cleaned soon + const promises = this._states.map(state => state.set(updates, context)); + return Promise.all(promises); + // return await this._controller.set(updates, context); } /**