Fix error when configure section of device is removed.

This commit is contained in:
Koen Kanters 2020-01-23 20:42:10 +01:00
parent cb855373ac
commit e1d51e6171

View File

@ -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;
}