@supernova-studio/client 0.52.3 → 0.52.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.52.3",
3
+ "version": "0.52.5",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -98,7 +98,6 @@ export class FrontendVersionRoomYDoc {
98
98
  const groupDraftDeletedStates = this.buildGroupDraftDeletedStates(groups, groupSnapshots);
99
99
  const groupPublishedMetadata = this.buildGroupPublishedMetadata(groups, groupSnapshots);
100
100
  const groupApprovalStates = this.buildGroupApprovalStates(groups, groupSnapshots);
101
-
102
101
  groupDTOs.forEach(g => {
103
102
  // Assign draft state
104
103
  const draftState = groupDraftDeletedStates.get(g.id) ?? groupDraftStates.get(g.id);
@@ -392,7 +391,7 @@ export class FrontendVersionRoomYDoc {
392
391
  persistentId: g.persistentId,
393
392
  groupId: g.id,
394
393
  };
395
- result.set(g.persistentId, approvalState);
394
+ result.set(g.id, approvalState);
396
395
  }
397
396
  return result;
398
397
  }