Skip to content

Commit

Permalink
hotfix: for #85
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Jan 17, 2024
1 parent 8c72d71 commit 8e9ce24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/BaseSharedStateCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 8e9ce24

Please sign in to comment.