Skip to content

Commit

Permalink
crmRouteBinder - Don't convert arrays to objects
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Jul 26, 2018
1 parent 51c6816 commit b3dcd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ang/crmRouteBinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
value = fmt.decode($route.current.params[options.param]);
}
else {
value = _.isObject(options.default) ? angular.extend({}, options.default) : options.default;
value = _.cloneDeep(options.default);
ignorable[options.param] = fmt.encode(options.default);
}
$parse(options.expr).assign(_scope, value);
Expand Down

0 comments on commit b3dcd75

Please sign in to comment.