mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 11:36:07 +01:00
Missing da causes invalid json
This commit is contained in:
parent
e1e4e79b68
commit
c581be0e97
1 changed files with 1 additions and 1 deletions
|
@ -1300,7 +1300,7 @@ class WebsocketHandler {
|
||||||
// and zips it together into a valid JSON object
|
// and zips it together into a valid JSON object
|
||||||
private serializeResponse(response): string {
|
private serializeResponse(response): string {
|
||||||
return '{'
|
return '{'
|
||||||
+ Object.keys(response).map(key => `"${key}": ${response[key]}`).join(', ')
|
+ Object.keys(response).filter(key => response[key] != null).map(key => `"${key}": ${response[key]}`).join(', ')
|
||||||
+ '}';
|
+ '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue