Fix project serialization not returning class

This commit is contained in:
Sam Nolan 2022-10-08 14:46:24 +11:00
parent de73a98735
commit 17cc2a42cc

View File

@ -120,9 +120,7 @@ export class SqProject {
return RSProject.toJson(this._value);
}
static fromJson(
projectJson: RSProject.reducerProjectJson
): RSProject.reducerProject {
return RSProject.fromJson(projectJson);
static fromJson(projectJson: RSProject.reducerProjectJson): SqProject {
return new SqProject(RSProject.fromJson(projectJson));
}
}