test: validate three-arm junction editing workflow
This commit is contained in:
1 parent
f40caaa264
commit
ff11dc2654
5 files changed
+121
-5
No files matched your search
@@ -49,9 +49,10 @@ export function useDirectEditSession({
|
||||
if (!current || !('handles' in value)) return;
|
||||
setManifest(value.handles);
|
||||
const key = `${value.areaId}:${value.documentVersion}`;
|
||||
if (loadedDocument.current === key) return;
|
||||
if (!sessionRef.current) return;
|
||||
if (loadedDocument.current === key && sessionRef.current.documentVersion === value.documentVersion) return;
|
||||
sessionRef.current.load(value.document.constraints, value.document.operations, value.documentVersion);
|
||||
loadedDocument.current = key;
|
||||
sessionRef.current?.load(value.document.constraints, value.document.operations, value.documentVersion);
|
||||
touch();
|
||||
})
|
||||
.catch((error: Error) => {
|
||||
|
||||
Reference in new issue
Block a user