mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Change object assign to spread
This commit is contained in:
parent
848cf43c85
commit
6217be8a14
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user