Commit 98a7f258 by Marcus Efraimsson Committed by GitHub

Merge pull request #12392 from dehrax/12248-fix

Fix selecting current dashboard from search does not reload dashboard
parents eb4d860f 762ee203
......@@ -63,7 +63,8 @@ export class SearchResultsCtrl {
}
onItemClick(item) {
if (this.$location.path().indexOf(item.url) > -1) {
//Check if one string can be found in the other
if (this.$location.path().indexOf(item.url) > -1 || item.url.indexOf(this.$location.path()) > -1) {
appEvents.emit('hide-dash-search');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment