awing-library 2.1.2-dev.573 → 2.1.2-dev.574
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/AWING/PageManagement/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,QACzB,MAAM,CACP,MAAM,EACN;IACI,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CACJ;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/AWING/PageManagement/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,QACzB,MAAM,CACP,MAAM,EACN;IACI,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CACJ;;;CAkCJ,CAAC"}
|
|
@@ -4,7 +4,7 @@ const getAdvanceSearchValue = (obj)=>{
|
|
|
4
4
|
const newAdvancedObject = Object.create({});
|
|
5
5
|
keys.forEach((key)=>{
|
|
6
6
|
const currentValue = obj[key]?.value;
|
|
7
|
-
if (Array.isArray(currentValue)) newAdvancedObject[key] = currentValue.map((item)=>item?.value);
|
|
7
|
+
if (Array.isArray(currentValue) && currentValue.every((item)=>item && 'object' == typeof item && 'value' in item)) newAdvancedObject[key] = currentValue.map((item)=>item?.value);
|
|
8
8
|
else if (currentValue && 'object' == typeof currentValue && 'value' in currentValue) newAdvancedObject[key] = currentValue.value;
|
|
9
9
|
else newAdvancedObject[key] = currentValue;
|
|
10
10
|
if (void 0 !== currentValue) saveAdvancedObject[key] = obj[key];
|