Skip to content

Commit cea1866

Browse files
artem-harbourharbournick
authored andcommitted
fix: annotations import (#755)
1 parent a7301bd commit cea1866

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/super-editor/src/core/super-converter/v2/importer/annotationImporter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export const handleAnnotationNode = (params) => {
5555
if (!allAttrs.hash) allAttrs.hash = generateDocxRandomId(4);
5656

5757
// Some w:sdt nodes have attrs.fieldId (coming from GoogleDocs) so we need a secondary check
58-
// Expecting fieldType if its a field annotation
59-
if (!attrs.fieldId || !attrs.fieldType) {
58+
// Expecting `type` if its a field annotation
59+
if (!attrs.fieldId || !attrs.type) {
6060
return { nodes: [], consumed: 0 };
6161
}
6262

0 commit comments

Comments
 (0)