Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
fix(simulator): desired state may be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Sep 25, 2020
1 parent a95fb5c commit a9ee5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/device/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const connect = async ({
if (wsConnection !== undefined) {
cfg = {
...cfg,
...stateObject.desired.cfg,
...(stateObject?.desired?.cfg ?? {}),
}
console.log(chalk.magenta('[ws>'), JSON.stringify(cfg))
wsConnection.send(JSON.stringify(cfg))
Expand Down

0 comments on commit a9ee5f8

Please sign in to comment.