diff --git a/web/src/admin/DiscoveryServices.vue b/web/src/admin/DiscoveryServices.vue index 338c1ec..08b91ff 100644 --- a/web/src/admin/DiscoveryServices.vue +++ b/web/src/admin/DiscoveryServices.vue @@ -131,6 +131,8 @@ export default { const query = new URLSearchParams(entries); this.$api.get('api/proxy/internal/discovery/v1/' + this.selectedService.id + '?' + query.toString()) .then(data => { + // fields can be null, initialize with empty object with so. Otherwise, the UI crashes. + data.forEach(r => r.fields = r.fields || {}) this.searchResults = data }) .catch(response => {