@topconsultnpm/sdkui-react 6.21.0-dev3.11 → 6.21.0-dev3.12
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.
|
@@ -47,8 +47,12 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
|
|
|
47
47
|
let dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === mid);
|
|
48
48
|
while (dynDLToBeRefreshed != undefined) {
|
|
49
49
|
const item = newValues.find(value => value.mid === dynDLToBeRefreshed?.mid);
|
|
50
|
-
if (item)
|
|
50
|
+
if (item) {
|
|
51
51
|
item.value = newValue;
|
|
52
|
+
if (showCheckBoxes !== ShowCheckBoxesMode.Never) {
|
|
53
|
+
item.isSelected = false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
52
56
|
dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === item?.mid);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -287,8 +291,12 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
|
|
|
287
291
|
let newMetadata = structuredClone(metadataValues);
|
|
288
292
|
for (const item of midsToBeUpdated) {
|
|
289
293
|
const mdItem = newMetadata.find(value => value.mid === item.mid);
|
|
290
|
-
if (mdItem)
|
|
294
|
+
if (mdItem) {
|
|
291
295
|
mdItem.value = item.value;
|
|
296
|
+
if (showCheckBoxes !== ShowCheckBoxesMode.Never) {
|
|
297
|
+
mdItem.isSelected = !stringIsNullOrEmpty(item.value);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
292
300
|
}
|
|
293
301
|
onValueChanged?.(newMetadata);
|
|
294
302
|
}, updateIsModalOpen: updateIsModalOpen }), FormulaHelper.isFormula(item.value)
|