From e1d51e6171cdc7534263c466acae461826fde040 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 23 Jan 2020 20:42:10 +0100 Subject: [PATCH] Fix error when configure section of device is removed. --- lib/extension/deviceConfigure.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/extension/deviceConfigure.js b/lib/extension/deviceConfigure.js index a1ddd05f..6de8bbbd 100644 --- a/lib/extension/deviceConfigure.js +++ b/lib/extension/deviceConfigure.js @@ -13,7 +13,7 @@ class DeviceConfigure extends BaseExtension { } shouldConfigure(device, mappedDevice) { - if (!device || !mappedDevice) { + if (!device || !mappedDevice || !mappedDevice.configure) { return false; } @@ -23,10 +23,6 @@ class DeviceConfigure extends BaseExtension { return false; } - if (!mappedDevice || !mappedDevice.configure) { - return false; - } - if (device.interviewing === true) { return false; }