We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a005fea commit 06f0feeCopy full SHA for 06f0fee
1 file changed
packages/super-editor/src/core/super-converter/v2/importer/annotationImporter.js
@@ -54,7 +54,9 @@ export const handleAnnotationNode = (params) => {
54
const allAttrs = { ...attrs, ...marksAsAttrs };
55
if (!allAttrs.hash) allAttrs.hash = generateDocxRandomId(4);
56
57
- if (!attrs.fieldId || !attrs.displayLabel) {
+ // 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) {
60
return { nodes: [], consumed: 0 };
61
}
62
0 commit comments