Make sure the addablePresetIDs can be reset back to null too

This commit is contained in:
Bryan Housel
2020-02-07 12:55:16 -05:00
parent 1155498766
commit 2149692bee
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -328,6 +328,8 @@ export function presetIndex(context) {
_addablePresetIDs = val;
if (_addablePresetIDs) { // reset all presets
_this.collection.forEach(p => p.addable(_addablePresetIDs.has(p.id)));
} else {
_this.collection.forEach(p => p.addable(true));
}
return _this;