chore: dedupe embedded file ids when exporting a super note [skip e2e]
This commit is contained in:
@@ -278,7 +278,11 @@ export class HeadlessSuperConverter implements SuperConverterServiceInterface {
|
|||||||
this.exportEditor.getEditorState().read(() => {
|
this.exportEditor.getEditorState().read(() => {
|
||||||
const fileNodes = $nodesOfType(FileNode)
|
const fileNodes = $nodesOfType(FileNode)
|
||||||
fileNodes.forEach((fileNode) => {
|
fileNodes.forEach((fileNode) => {
|
||||||
ids.push(fileNode.getId())
|
const nodeId = fileNode.getId()
|
||||||
|
if (ids.includes(nodeId)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
ids.push(nodeId)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user