-
Notifications
You must be signed in to change notification settings - Fork 62
SD-1525 - comment export with empty array #1790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 84a978b339
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
caio-pizzol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattConnHarbour looking good just a small comment + tests
packages/super-editor/src/core/super-converter/v2/exporter/commentsExporter.js
Outdated
Show resolved
Hide resolved
…587) (#1806) * fix: remove dead code * refactor: table and paragraph converters to avoid redirection * test: adjust existing tests * fix: remove unused imports and dead code * fix: pass theme colors to node handlers * refactor: simplify type definitions for converters --------- Co-authored-by: Luccas Correa <luccas@superdoc.dev>
fbece02 to
7dfbad0
Compare
…false, with tests
7dfbad0 to
f28852b
Compare
caio-pizzol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just 2 minor things - should be good after that
| ); | ||
|
|
||
| // Update content types and comments files as needed | ||
| // Empty array preserves existing comments unless preserveCommentsOnEmpty is true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is backwards.
Says "unless preserveCommentsOnEmpty is true" but should be "false".
true = preserve
false = remove
|
|
||
| // Update content types and comments files as needed | ||
| // Empty array preserves existing comments unless preserveCommentsOnEmpty is true | ||
| let updatedXml = { ...this.convertedXml }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let updatedXml = { ...this.convertedXml } is immediately overwritten on line 1031
example: