config-editor-base 2.0.1 → 2.0.3

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
@@ -347,6 +347,8 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
347
347
 
348
348
  if (selectedConfig) {
349
349
  var deviceType = "Other";
350
+ console.log("contentJSON", contentJSON);
351
+ console.log("contentJSON.gnss", contentJSON.gnss);
350
352
 
351
353
  if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss == undefined) {
352
354
  deviceType = "CANedge1";
@@ -371,6 +373,12 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
371
373
  return e.includes(selectedConfig.substr(7, 5));
372
374
  });
373
375
 
376
+ if (!deviceType.includes("GNSS")) {
377
+ schemaAryFiltered = schemaAryFiltered.filter(function (e) {
378
+ return !e.includes("GNSS");
379
+ });
380
+ }
381
+
374
382
  if (deviceType.includes("CANedge")) {
375
383
  schemaAryFiltered = schemaAryFiltered.filter(function (e) {
376
384
  return e.includes(deviceType);