diff --git a/ui/widgets/nuxeo-selectivity.js b/ui/widgets/nuxeo-selectivity.js index a1f959d43..a86855a8e 100644 --- a/ui/widgets/nuxeo-selectivity.js +++ b/ui/widgets/nuxeo-selectivity.js @@ -7347,6 +7347,15 @@ typedArrayTags[weakMapTag] = false; _valueChanged(newValue) { if (this._selectivity && !this._inUpdateSelection) { if (newValue) { + const selectivityItems = this._selectivity.items; + if (Array.isArray(selectivityItems)) { + const filteredItems = selectivityItems.filter(item => + item && newValue.includes(item.id) + ); + if (Array.isArray(filteredItems)) { + this.data = filteredItems; + } + } this._selectivity.setValue(newValue, { triggerChange: false }); } else { const cv = this._selectivity.getValue();