2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Object.assign is not fully supported

This commit is contained in:
Robin Ward 2017-09-14 11:58:11 -04:00
parent 8323e22d0c
commit 64fae87470

View file

@ -2,7 +2,7 @@ import RestAdapter from 'discourse/adapters/rest';
export default RestAdapter.extend({
pathFor(store, type, findArgs) {
let args = Object.assign({ rest_api: true }, findArgs);
let args = _.merge({ rest_api: true }, findArgs);
delete args.filter;
return `/admin/flags/${findArgs.filter}.json?${$.param(args)}`;
},