Fix module assignment

This commit is contained in:
Simon Warta
2020-07-07 23:53:19 +02:00
parent 66df36c83b
commit 9d98b50afb
+4 -1
View File
@@ -185,7 +185,10 @@ export class LcdClient {
`Module must be a non-null object. Found type ${typeof moduleValue} for module "${moduleKey}".`,
);
const current = (client as any)[moduleKey] || {};
(client as any)[moduleKey] = Object.assign(current, moduleValue);
(client as any)[moduleKey] = {
...current,
...moduleValue,
};
}
}
return client;