ember-data-url-templates icon indicating copy to clipboard operation
ember-data-url-templates copied to clipboard

Array params have indexes now

Open samdemaeyer opened this issue 7 years ago • 2 comments

Since the introduction of nested params, there seems to be something weird going on. The nested array params have now number inside. include[0]: 'Foo', include[1]: bar

I know it's this way because we cannot have duplicate keys in a javascript object, but would it be possible to go back to work with an array. Or is this intended behavior @amiel 😅 ?

Before: screenshot 2018-10-18 at 15 11 02

After: screenshot 2018-10-18 at 15 05 42

samdemaeyer avatar Oct 18 '18 15:10 samdemaeyer

@samdemaeyer I'll admit that this was not intentional. I'm not sure how best to address it though.

I would gladly merge a fix if you have any ideas, so feel free to give it a shot. Otherwise I'm happy to look in to it, but I can't guarantee it will be any time soon.

amiel avatar Oct 18 '18 16:10 amiel

I'm going to reopen this, as it is definitely still a bug, we just don't have a solution for it yet.

amiel avatar Oct 30 '18 00:10 amiel