config-editor-base 1.9.0 → 1.9.2

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.
@@ -343,7 +343,24 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
343
343
  dispatch(resetSchemaFiles());
344
344
 
345
345
  if (selectedConfig) {
346
- var deviceType = contentJSON.can_2 != undefined && contentJSON.connect == undefined ? "CANedge1" : contentJSON.can_2 != undefined ? "CANedge2" : "Other";
346
+ var deviceType = "Other";
347
+
348
+ if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss == undefined) {
349
+ deviceType = "CANedge1";
350
+ }
351
+
352
+ if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss != undefined) {
353
+ deviceType = "CANedge1 GNSS";
354
+ }
355
+
356
+ if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss == undefined) {
357
+ deviceType = "CANedge2";
358
+ }
359
+
360
+ if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss != undefined) {
361
+ deviceType = "CANedge2 GNSS";
362
+ }
363
+
347
364
  var schemaAryFiltered = schemaAry.filter(function (e) {
348
365
  return e.includes(selectedConfig.substr(7, 5));
349
366
  });