[Unhandled promise rejection: Error: Reference.update failed: First argument contains undefined in property 'orders.-MN6f-JxMnLS4qAmVfs0.info.other_phone'] code example

Example: [Unhandled promise rejection: Error: Reference.update failed: First argument contains undefined in property 'orders.-MN6f-JxMnLS4qAmVfs0.info.other_phone']

to make sure your object does not contain any undefined props use this simple trick:

JSON.parse( JSON.stringify(YourJsonData ) )
For more info take a look at this codePen: http://codepen.io/ajmueller/pen/gLaBLX

Tags:

Misc Example