hunk.code_window:       }
         this.setTableData('associated', response.value, response.totalCount);
       });
     }
     /* #endregion */
     /* #region  On endpoint click (either available or associated) */
     associateEndpoint(endpoint) {
       this.onAssociate(endpoint);
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:   getTags() {
       return this.$async(async () => {
         let tags = { value: [], totalCount: 0 };
         tags = await getTags();
         this.tags = tags;
       });
     }
  
hunk.file_path: app/portainer/components/associated-endpoints-selector/associatedEndpointsSelectorController.js
hunk.type: add
file: import _ from 'lodash';
  
  export function idsToTagNames(tags, ids) {
    const filteredTags = _.filter(tags, (tag) => _.includes(ids, tag.Id));
    const tagNames = _.map(filteredTags, 'Name');
    return tagNames;
  }
  