fix(annotation): correctly assign elementId for signature annotations

Previously, signature annotations did not include elementId mapping logic, which caused issues when linking annotations to their corresponding elements. This update adds logic to extract elementId from the nearest signature annotation (similar to frame annotations) to ensure proper association.
This commit is contained in:
2025-10-21 09:25:01 +02:00
parent 26bdb0806d
commit 9d6074874f
3 changed files with 6 additions and 3 deletions

View File

@@ -250,8 +250,8 @@ class App {
// Export annotation data and save to database
try {
const res = await signEnvelope({
instant: iJSON,
structured: mapSignature(iJSON)
psPfKitInstant: iJSON,
psPfKitStructured: mapSignature(iJSON)
});
if (!res.ok) {