@topconsultnpm/sdkui-react-beta 6.5.88 → 6.5.89

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.
@@ -40,7 +40,7 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
40
40
  for (let i = 0; i < dtds.length; i++) {
41
41
  const dtd = new DcmtTypeDescriptor();
42
42
  dtd.init({ ...dtds[i] });
43
- const alias = tids?.[i].alias;
43
+ const alias = tids?.[i].alias ?? '';
44
44
  dtd.customData2 = alias;
45
45
  if (!qdShowOnlySelectItems) {
46
46
  dtd.metadata?.forEach((md) => {
@@ -49,7 +49,7 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
49
49
  }); //getDisplayAlias(SDK_Globals.useLocalizedName ? dtd.nameLoc : dtd.name, alias)
50
50
  }
51
51
  else {
52
- let newMetadata = dtd.metadata?.filter(o => qd.select?.some(s => s.tid == dtd.id && s.mid == o.id && s.alias == alias));
52
+ let newMetadata = dtd.metadata?.filter(o => qd.select?.some(s => s.tid == dtd.id && s.mid == o.id && ((s.alias ?? '') == alias)));
53
53
  newMetadata?.forEach((md) => {
54
54
  md.customData1 = dtd.id;
55
55
  md.customData2 = alias;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.5.88",
3
+ "version": "6.5.89",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",