mirror of https://github.com/portainer/portainer
fix(tags): get tags when loading associated endpoints selector EE-4140 (#7857)
parent
7a6ff10268
commit
8f1ac38963
@ -1,7 +1,7 @@
|
||||
import _ from 'lodash';
|
||||
|
||||
export function idsToTagNames(tags, ids) {
|
||||
const filteredTags = _.filter(tags, (tag) => _.includes(ids, tag.Id));
|
||||
const filteredTags = _.filter(tags, (tag) => _.includes(ids, tag.ID));
|
||||
const tagNames = _.map(filteredTags, 'Name');
|
||||
return tagNames;
|
||||
}
|
||||
|
Loading…
Reference in new issue