fix(sr): sr hydration and load was not working, Screenshot Comparison, and Testing (#4814)

This commit is contained in:
Alireza authored and GitHub committed 2025-02-26 11:23:40 -05:00
1 parent 1f5c60bbda
commit 9233143b9d
23 files changed
+213 -21

No files matched your search

+9 -12
View File
@@ -140,19 +140,16 @@ function commandsModule({
)?.[0];
if (previousReferencedDisplaySetStoreKey) {
if (referencedImageId) {
setPositionPresentation(previousReferencedDisplaySetStoreKey, {
viewReference: {
referencedImageId,
},
});
} else {
setPositionPresentation(
previousReferencedDisplaySetStoreKey,
presentations.positionPresentation
);
}
const presentationData = referencedImageId
? {
...presentations.positionPresentation,
viewReference: {
referencedImageId,
},
}
: presentations.positionPresentation;
setPositionPresentation(previousReferencedDisplaySetStoreKey, presentationData);
return;
}