when the request is made from the javascript server-side, you get OK from the REST server, for requests about the config service.
We'll leave the handler for OK in the angular code for now, Giuseppe Digilio (4Science) will create a REST api ticket for this, and we'll remove it once that's fixed.
Giuseppe Digilio (4Science) says this code comes from the ng-dynamic-forms library. It was only added to dspace to extend it (add additional form controls)
In the Angular 6 version of the library that switch has been refactored in the way that was suggested is the review comments
The angular 6 way will also make it no longer necessary to include the template in the dspace codebase, we can create new components using annotations instead
Fixing this now would be a lot of work, that will be removed after the update
So we'll leave out the refactor for now and discuss the angular 6 update in the sprint kickoff meeting
The Next Meeting will be the kickoff meeting for sprint #2 on Monday, July 9 at 14:00UTC(10:00am EDT) in DSpace Meeting Room