We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
computed
inject
1 parent 0f7e110 commit ecca70fCopy full SHA for ecca70f
1 file changed
packages/devtools-kit/src/core/component/state/process.ts
@@ -26,11 +26,8 @@ function mergeOptions(
26
27
for (const key of ['computed', 'inject']) {
28
if (Object.prototype.hasOwnProperty.call(from, key)) {
29
- if (!to[key])
30
- to[key] = from[key]
31
-
32
- else
33
- Object.assign(to[key], from[key])
+ to[key] ??= {}
+ Object.assign(to[key], from[key])
34
}
35
36
return to
0 commit comments