From a44709c0bbbd20da14d32da79c64c8d5ab1443a2 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Tue, 10 Sep 2019 16:44:37 +0100 Subject: [PATCH] Only add found device if it has port info --- src/components/controlComponents/paneConnect.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/controlComponents/paneConnect.vue b/src/components/controlComponents/paneConnect.vue index daf4faba..2f02bbd8 100644 --- a/src/components/controlComponents/paneConnect.vue +++ b/src/components/controlComponents/paneConnect.vue @@ -49,7 +49,7 @@ -
  • +
  • Saved devices
    @@ -130,7 +130,10 @@ export default { port: data.port } - context.foundHosts.push(hostData) + if (typeof data.port !== "undefined") { + context.foundHosts.push(hostData) + } + console.log(context.foundHosts) }); }