mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-26 14:21:12 +00:00
Try to stringify jsonres.
This commit is contained in:
parent
1a456d1bae
commit
712d9c518c
1 changed files with 1 additions and 1 deletions
|
@ -679,5 +679,5 @@ export function wsJsonToRes<ResponseType>(
|
|||
msg: any,
|
||||
responseClass: ClassConstructor<ResponseType>
|
||||
): ResponseType {
|
||||
return deserialize(responseClass, msg.data);
|
||||
return deserialize(responseClass, JSON.stringify(msg.data));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue