config-editor-base 2.1.7 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -310,16 +310,16 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
|
|
|
310
310
|
if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss != undefined) {
|
|
311
311
|
deviceType = "CANedge1 GNSS";
|
|
312
312
|
}
|
|
313
|
-
if (contentJSON.can_2 != undefined && contentJSON.connect.wifi != undefined && contentJSON.gnss == undefined) {
|
|
313
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect && contentJSON.connect.wifi != undefined && contentJSON.gnss == undefined) {
|
|
314
314
|
deviceType = "CANedge2";
|
|
315
315
|
}
|
|
316
|
-
if (contentJSON.can_2 != undefined && contentJSON.connect.wifi != undefined && contentJSON.gnss != undefined) {
|
|
316
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect && contentJSON.connect.wifi != undefined && contentJSON.gnss != undefined) {
|
|
317
317
|
deviceType = "CANedge2 GNSS";
|
|
318
318
|
}
|
|
319
|
-
if (contentJSON.can_2 != undefined && contentJSON.connect.cellular != undefined && contentJSON.gnss == undefined) {
|
|
319
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect && contentJSON.connect.cellular != undefined && contentJSON.gnss == undefined) {
|
|
320
320
|
deviceType = "CANedge3";
|
|
321
321
|
}
|
|
322
|
-
if (contentJSON.can_2 != undefined && contentJSON.connect.cellular != undefined && contentJSON.gnss != undefined) {
|
|
322
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect && contentJSON.connect.cellular != undefined && contentJSON.gnss != undefined) {
|
|
323
323
|
deviceType = "CANedge3 GNSS";
|
|
324
324
|
}
|
|
325
325
|
var schemaAryFiltered = schemaAry.filter(function (e) {
|