diff --git a/src/xo-mixins/resource-sets.js b/src/xo-mixins/resource-sets.js index abcf1f0ee..224318c43 100644 --- a/src/xo-mixins/resource-sets.js +++ b/src/xo-mixins/resource-sets.js @@ -234,8 +234,8 @@ export default class { return } - if ((limit.available += quantity) > limits.total) { - throw new Error(`cannot release ${quantity} ${id} in the set ${setId}`) + if ((limit.available += quantity) > limit.total) { + limit.available = limit.total } }) await this._save(set)