Normalize undefined runtime success results to null
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
4b25e84c2e
commit
2a08d8ea2a
1 file changed
+1
-1
@@ -96,7 +96,7 @@ function responseSuccess(id: string, result: unknown): WsResponseMessage {
|
||||
type: "response",
|
||||
id,
|
||||
ok: true,
|
||||
result,
|
||||
result: result === undefined ? null : result,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user