I have a UI where I can build a ship by selecting the hull and then selecting all appropriate modifications that I want to put on it. Everything is great until I get to the part where I save it to PlayFab. I'm not sure what I'm doing wrong. Here's the code: http://pastebin.com/1masGwKc
If someone can point out what it is that I'm doing wrong here, that would be great. I'm a bit rusty on JS so I'm oblivious right now.