LP1811156 Activate Angular server admin page
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / basic-admin-page.component.ts
index 84219f1..d47d92a 100644 (file)
@@ -55,7 +55,9 @@ export class BasicAdminPageComponent implements OnInit {
         }
 
         // Pass the readonlyFields param if available
-        if (this.route.snapshot.data[0].readonlyFields) {
+        if (this.route.snapshot.data &&
+            this.route.snapshot.data.length &&
+            this.route.snapshot.data[0].readonlyFields) {
             this.readonlyFields = this.route.snapshot.data[0].readonlyFields;
         }