From d5155100a896b96c505f38602777c0f6893eb058 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 10 Sep 2019 18:24:17 +0100 Subject: [PATCH] Prevent duplicate foundHosts caused by multiple broadcasts --- src/components/controlComponents/paneConnect.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/controlComponents/paneConnect.vue b/src/components/controlComponents/paneConnect.vue index 2f02bbd8..572e5dfb 100644 --- a/src/components/controlComponents/paneConnect.vue +++ b/src/components/controlComponents/paneConnect.vue @@ -43,7 +43,7 @@
  • Nearby devices
    - @@ -97,7 +97,7 @@ export default { port: 5000, selectedHost: "", savedHosts: [], - foundHosts: [] + foundHosts: {} } }, @@ -131,7 +131,7 @@ export default { } if (typeof data.port !== "undefined") { - context.foundHosts.push(hostData) + context.foundHosts[hostData.hostname] = hostData } console.log(context.foundHosts)