Replace spread syntax with Object.assign in untranspiled JS file (#15148)

This commit is contained in:
rhymes 2021-10-21 14:01:05 +02:00 committed by GitHub
parent 085a506205
commit 0dd11b3da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 || [];