avoid glitch in low-permission mode
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 1 Sep 2020 15:07:38 +0000 (11:07 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 1 Sep 2020 15:07:38 +0000 (11:07 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/acq/provider/provider-details.component.ts

index 2261a16..235b1d1 100644 (file)
@@ -52,7 +52,7 @@ export class ProviderDetailsComponent implements OnInit {
         if (this.provider.currency_type()) {
             this.provider.currency_type(this.provider.currency_type().code());
         }
-        if (this.provider.edi_default()) {
+        if (this.provider.edi_default() && typeof this.provider.edi_default() !== 'number') {
             this.provider.edi_default(this.provider.edi_default().id());
         }
     }