@topconsultnpm/sdkui-react-beta 6.8.94 → 6.8.95
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.
|
@@ -26,7 +26,7 @@ export type DynDataListsToBeRefreshed = {
|
|
|
26
26
|
};
|
|
27
27
|
export type MIDsToBeUpdated = {
|
|
28
28
|
mid: number;
|
|
29
|
-
value: string;
|
|
29
|
+
value: string | undefined;
|
|
30
30
|
};
|
|
31
31
|
declare const TMDynDataListItemChooser: React.FunctionComponent<ITMDynDataListItemChooserProps>;
|
|
32
32
|
export default TMDynDataListItemChooser;
|
|
@@ -79,17 +79,14 @@ const TMDynDataListItemChooser = ({ tid, md, layoutMode = LayoutModes.None, quer
|
|
|
79
79
|
}
|
|
80
80
|
if (dynDl.onValueChanged_MIDsToBeUpdated && dynDl.onValueChanged_MIDsToBeUpdated.length > 0) {
|
|
81
81
|
let toBeUpdated = [];
|
|
82
|
+
toBeUpdated.push({ mid: md?.id ?? 0, value: IDs?.[0] });
|
|
82
83
|
for (const t of dynDl.onValueChanged_MIDsToBeUpdated) {
|
|
83
|
-
console.log(t);
|
|
84
84
|
let mid = t.item1 ?? 0;
|
|
85
85
|
let value = '';
|
|
86
|
-
console.log(row[0]);
|
|
87
|
-
console.log(row[0][t.item2 ?? 0]);
|
|
88
86
|
if ((t.item2 ?? 0) >= 0)
|
|
89
87
|
value = row[0][t.item2 ?? 0];
|
|
90
88
|
toBeUpdated.push({ mid: mid, value: value });
|
|
91
89
|
}
|
|
92
|
-
console.log(toBeUpdated);
|
|
93
90
|
onCascadeUpdateMIDs?.(toBeUpdated);
|
|
94
91
|
}
|
|
95
92
|
} })] }));
|