djmaze 2020-09-24 15:08:57 +02:00
parent d291716489
commit 4257d9ca78
8 changed files with 16 additions and 37 deletions

View file

@ -5,9 +5,7 @@ class IdentityUserStore {
this.identities = ko.observableArray([]);
this.identities.loading = ko.observable(false).extend({ throttle: 100 });
this.identitiesIDS = ko.computed(
() => this.identities().map(item => (item ? item.id : null)).filter(value => !!value)
);
this.getIDS = () => this.identities().map(item => (item ? item.id() : null)).filter(value => null !== value);
}
}