mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
do not set undefined values
This commit is contained in:
@@ -453,8 +453,8 @@ class PipelineInfo{
|
||||
for (let k in configStruct) {
|
||||
let struct = configStruct[k];
|
||||
if (round > 0) config[k] = struct.key;
|
||||
if (struct.target !== undefined) {
|
||||
if (struct.target === 'environment') {
|
||||
if (struct.target !== undefined && struct.value !== undefined) {
|
||||
if (struct.target === 'environment' ) {
|
||||
if (round > 0) environment = struct.value;
|
||||
else allowedResources=struct.resource;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user