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