diff --git a/ui/packages/consul-ui/app/services/repository/proxy.js b/ui/packages/consul-ui/app/services/repository/proxy.js index e0fa74143..df0563afb 100644 --- a/ui/packages/consul-ui/app/services/repository/proxy.js +++ b/ui/packages/consul-ui/app/services/repository/proxy.js @@ -41,7 +41,9 @@ export default class ProxyService extends RepositoryService { return this.findAllBySlug(slug, dc, nspace, configuration).then(function(items) { let res = {}; if (get(items, 'length') > 0) { - let instance = items.filterBy('ServiceProxy.DestinationServiceID', id).findBy('Node', node); + let instance = items + .filterBy('ServiceProxy.DestinationServiceID', id) + .findBy('NodeName', node); if (instance) { res = instance; } else { diff --git a/ui/packages/consul-ui/app/services/repository/service-instance.js b/ui/packages/consul-ui/app/services/repository/service-instance.js index 1ce1a2426..49399ed09 100644 --- a/ui/packages/consul-ui/app/services/repository/service-instance.js +++ b/ui/packages/consul-ui/app/services/repository/service-instance.js @@ -48,10 +48,13 @@ export default class ServiceInstanceService extends RepositoryService { // } // Copy over all the things to the ProxyServiceInstance - ['Service', 'Node'].forEach(prop => { + ['Service', 'Node', 'meta'].forEach(prop => { set(proxy, prop, instance[prop]); }); ['Checks'].forEach(prop => { + // completely wipe out any previous values so we don't accumulate things + // eternally + proxy.set(prop, []); instance[prop].forEach(item => { if (typeof item !== 'undefined') { proxy[prop].addFragment(item.copy());