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';
|
import _ from 'lodash';
|
||||||
|
|
||||||
export function idsToTagNames(tags, ids) {
|
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');
|
const tagNames = _.map(filteredTags, 'Name');
|
||||||
return tagNames;
|
return tagNames;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue