This pull request fixes #4 and users can add webhooks again.
Problem
Angular adds a $$hashkey property to the object used in ng-repeat loops to distinct and recognize changes on them. The object containing the new webhook information also contained the $$hashkey property while it was sent to the server. On server side, MongoDB doesn’t allow saving properties beginning with the $ symbol.
Fix
Add track by $index to the Angular ng-repeat loop to avoid the creation of the $$hashkey object.
Additionally, I added a missing closing tag for the url input.
This pull request fixes #4 and users can add webhooks again.
Problem Angular adds a
$$hashkey
property to the object used inng-repeat
loops to distinct and recognize changes on them. The object containing the new webhook information also contained the$$hashkey
property while it was sent to the server. On server side, MongoDB doesn’t allow saving properties beginning with the$
symbol.Fix Add
track by $index
to the Angularng-repeat
loop to avoid the creation of the$$hashkey
object.Additionally, I added a missing closing tag for the url input.