@topconsultnpm/sdkui-react 6.21.0-dev3.40 → 6.21.0-dev3.41

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.
@@ -457,6 +457,18 @@ const TMLoginForm = (props) => {
457
457
  // Skip auto-selection when defaultLoginValues provides an archiveId (external link)
458
458
  if (props.defaultLoginValues?.archiveId)
459
459
  return;
460
+ // Se dcmtArchive è già impostato (es. da rapid access), gestisci manualArchiveID
461
+ if (dcmtArchive) {
462
+ // Se la lista archivi è vuota, serve accesso manuale
463
+ if (archives.length === 0) {
464
+ setManualArchiveID(dcmtArchive.id ?? '');
465
+ }
466
+ else {
467
+ // Se l'archivio esiste nella lista, pulisci manualArchiveID
468
+ setManualArchiveID('');
469
+ }
470
+ return;
471
+ }
460
472
  if (archives.length === 1) {
461
473
  setDcmtArchive(archives[0]);
462
474
  return;
@@ -593,7 +605,6 @@ const TMLoginForm = (props) => {
593
605
  return;
594
606
  setEndpoint(ra.endpoint);
595
607
  setDcmtArchive(ra.archive);
596
- setManualArchiveID(ra.archive?.id ?? '');
597
608
  setAuthMode(ra.authenticationMode);
598
609
  setUsername(ra.username);
599
610
  setAuthDomain(ra.domain.length > 0 ? ra.domain : ra.domainAlternative);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.21.0-dev3.40",
3
+ "version": "6.21.0-dev3.41",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",