Skip to content

Commit

Permalink
Update for version 20210427-grafana7
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Ferrero committed Apr 27, 2021
1 parent ade268d commit d75a240
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/directives/tag_input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class TagInputCtrl {

public getTags(): Promise<string[]> {
const query = this.$scope.getTagInputValue();
//we filter the tags in function of what is in the query
return this.promiseUtils.resolvedPromise((this.tagValues || [])
.filter((tagValue) => _.includes(tagValue, query))
.slice(0, TAG_VALUE_SUGGESTIONS_LIMIT)
Expand Down

0 comments on commit d75a240

Please sign in to comment.