Change object assign to spread

This commit is contained in:
Keraito 2018-06-02 21:33:15 +02:00
parent 848cf43c85
commit 6217be8a14

View File

@ -111,7 +111,7 @@ export default class ClientApi {
if (params) {
Object.keys(params).forEach(key => {
if (typeof params[key] === 'object') {
allParam[key] = Object.assign({ ...allParam[key] }, params[key]);
allParam[key] = { ...allParam[key], ...params[key] };
} else {
allParam[key] = params[key];
}