marklogic-community / data-explorer

Data Explorer Tool
Other
15 stars 4 forks source link

Duplicate fields break search #135

Closed nlaprell closed 6 years ago

nlaprell commented 6 years ago

If a user creates a query or view and uses duplicate field names, when searching the query/view, angular fails to render the page and throws:

angular.js:11655 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: key in results['results-header'], Duplicate key: string:mydupe, Duplicate value: mydupe

Proposed solutions:

nlaprell commented 6 years ago

I updated the query/view wizard to validate against duplicate field names and display an error to the user that the fields need to have unique names.

nlaprell commented 6 years ago

Merged to Master.