@ssplib/react-components 0.0.228 → 0.0.229
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.
|
@@ -504,6 +504,8 @@ hideTitleCSV = false, csvExcludeUpper = [], multipleDataPath = '', expandTextMax
|
|
|
504
504
|
case 'contem':
|
|
505
505
|
currentData.forEach((cd) => {
|
|
506
506
|
const value = (0, lodash_get_1.default)(cd, dt.keyName, '');
|
|
507
|
+
if (!value)
|
|
508
|
+
return;
|
|
507
509
|
if (dt.useList) {
|
|
508
510
|
if (value.includes(dt.value.id)) {
|
|
509
511
|
filteredData.push(cd);
|
|
@@ -519,6 +521,8 @@ hideTitleCSV = false, csvExcludeUpper = [], multipleDataPath = '', expandTextMax
|
|
|
519
521
|
case 'tem um dos':
|
|
520
522
|
currentData.forEach((cd) => {
|
|
521
523
|
const value = (0, lodash_get_1.default)(cd, dt.keyName, '');
|
|
524
|
+
if (!value)
|
|
525
|
+
return;
|
|
522
526
|
if (dt.value.map((x) => x.id).includes(value)) {
|
|
523
527
|
filteredData.push(cd);
|
|
524
528
|
}
|
|
@@ -543,7 +547,6 @@ hideTitleCSV = false, csvExcludeUpper = [], multipleDataPath = '', expandTextMax
|
|
|
543
547
|
const value = (0, dayjs_1.default)((0, lodash_get_1.default)(cd, dt.keyName, ''), 'DD/MM/YYYY');
|
|
544
548
|
const dateA = (0, dayjs_1.default)(dt.value, 'DD/MM/YYYY');
|
|
545
549
|
const dateB = (0, dayjs_1.default)(dt.value2, 'DD/MM/YYYY');
|
|
546
|
-
console.log(dateA.isValid(), dateB.isValid());
|
|
547
550
|
if (!dateA.isValid() || !dateB.isValid())
|
|
548
551
|
return;
|
|
549
552
|
if ((value.isAfter(dateA) || value.isSame(dateA)) && (value.isBefore(dateB) || value.isSame(dateB))) {
|