mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-02 09:11: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,
|
msg: any,
|
||||||
responseClass: ClassConstructor<ResponseType>
|
responseClass: ClassConstructor<ResponseType>
|
||||||
): ResponseType {
|
): ResponseType {
|
||||||
return deserialize(responseClass, msg.data);
|
return deserialize(responseClass, JSON.stringify(msg.data));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue