{"action":"created","issue":{"url":"https://api.github.com/repos/jembi/openhim-console/issues/347","labels_url":"https://api.github.com/repos/jembi/openhim-console/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/jembi/openhim-console/issues/347/comments","events_url":"https://api.github.com/repos/jembi/openhim-console/issues/347/events","html_url":"https://github.com/jembi/openhim-console/pull/347","id":118845443,"number":347,"title":"Config struct repeats","user":{"login":"devcritter","id":1872071,"avatar_url":"https://avatars.githubusercontent.com/u/1872071?v=3","gravatar_id":"","url":"https://api.github.com/users/devcritter","html_url":"https://github.com/devcritter","followers_url":"https://api.github.com/users/devcritter/followers","following_url":"https://api.github.com/users/devcritter/following{/other_user}","gists_url":"https://api.github.com/users/devcritter/gists{/gist_id}","starred_url":"https://api.github.com/users/devcritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devcritter/subscriptions","organizations_url":"https://api.github.com/users/devcritter/orgs","repos_url":"https://api.github.com/users/devcritter/repos","events_url":"https://api.github.com/users/devcritter/events{/privacy}","received_events_url":"https://api.github.com/users/devcritter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T14:19:07Z","updated_at":"2015-11-26T08:20:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jembi/openhim-console/pulls/347","html_url":"https://github.com/jembi/openhim-console/pull/347","diff_url":"https://github.com/jembi/openhim-console/pull/347.diff","patch_url":"https://github.com/jembi/openhim-console/pull/347.patch"},"body":"Companion PR for https://github.com/jembi/openhim-core-js/pull/600\r\n\r\n@rcrichton if you could please review?\r\n\r\nStructs:\r\n![screen shot 2015-11-25 at 13 17 32](https://cloud.githubusercontent.com/assets/1872071/11399380/abf081aa-938f-11e5-9f04-692377165ec7.png)\r\n![screen shot 2015-11-25 at 13 17 20](https://cloud.githubusercontent.com/assets/1872071/11399387/b8c335d0-938f-11e5-9909-d870b53f9cf6.png)\r\n\r\nArrays:\r\n![screen shot 2015-11-25 at 16 05 33](https://cloud.githubusercontent.com/assets/1872071/11399393/c301e64a-938f-11e5-9ba2-60912ce0717a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/jembi/openhim-console/issues/comments/159844937","html_url":"https://github.com/jembi/openhim-console/pull/347#issuecomment-159844937","issue_url":"https://api.github.com/repos/jembi/openhim-console/issues/347","id":159844937,"user":{"login":"rcrichton","id":266576,"avatar_url":"https://avatars.githubusercontent.com/u/266576?v=3","gravatar_id":"","url":"https://api.github.com/users/rcrichton","html_url":"https://github.com/rcrichton","followers_url":"https://api.github.com/users/rcrichton/followers","following_url":"https://api.github.com/users/rcrichton/following{/other_user}","gists_url":"https://api.github.com/users/rcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/rcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcrichton/subscriptions","organizations_url":"https://api.github.com/users/rcrichton/orgs","repos_url":"https://api.github.com/users/rcrichton/repos","events_url":"https://api.github.com/users/rcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/rcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T08:20:38Z","updated_at":"2015-11-26T08:20:38Z","body":"Hey @devcritter I got the following on the mediator details page when I add two empty structs and save.\r\n\r\n```\r\nError: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: (arrKey, arrayValue) in configValue, Duplicate key: object:null\r\nhttp://errors.angularjs.org/1.2.15/ngRepeat/dupes?p0=(arrKey%2C%20arrayValue)%20in%20configValue&p1=object%3Anull\r\n    at angular.js:78\r\n    at ngRepeatAction (angular.js:19729)\r\n    at Object.$watchCollectionAction [as fn] (angular.js:11906)\r\n    at Scope.$digest (angular.js:12031)\r\n    at Scope.$apply (angular.js:12279)\r\n    at done (angular.js:7991)\r\n    at completeRequest (angular.js:8196)\r\n    at XMLHttpRequest.xhr.onreadystatechange (angular.js:8137)\r\n```\r\n\r\nThis was the config that I had:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/266576/11418273/1049842a-9427-11e5-8bf5-56a4660ff7a3.png)\r\n\r\nThis is what the mediator recieved back as config: `[{\"weight\":0.2,\"host\":\"0.0.0.0\"},{\"weight\":0.5,\"host\":\"0.0.0.0\"},{},{}]`\r\n\r\nPerhaps there should be some protection against creating empty objects?"}}