FIX: `Object.assign` is not fully supported
This commit is contained in:
parent
8323e22d0c
commit
64fae87470
|
@ -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)}`;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue