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:
parent
8323e22d0c
commit
64fae87470
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue