Replace spread syntax with Object.assign in untranspiled JS file (#15148)
This commit is contained in:
parent
085a506205
commit
0dd11b3da5
1 changed files with 4 additions and 4 deletions
|
|
@ -289,10 +289,10 @@ function insertArticles(articles) {
|
|||
}
|
||||
|
||||
function paginate(tag, params, requiresApproval) {
|
||||
const searchHash = {
|
||||
...{ per_page: 15, page: nextPage },
|
||||
...JSON.parse(params),
|
||||
};
|
||||
const searchHash = Object.assign(
|
||||
{ per_page: 15, page: nextPage },
|
||||
JSON.parse(params),
|
||||
);
|
||||
|
||||
if (tag && tag.length > 0) {
|
||||
searchHash.tag_names = searchHash.tag_names || [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue