Skip to content

Fix the 'Cancel' button in comment-sample#492

Merged
alexr00 merged 2 commits intomicrosoft:mainfrom
laurentlb:main
Jan 24, 2022
Merged

Fix the 'Cancel' button in comment-sample#492
alexr00 merged 2 commits intomicrosoft:mainfrom
laurentlb:main

Conversation

@laurentlb
Copy link
Contributor

The code behind 'Cancel' was identical to the code for 'Save'. Since the
commenting API is modifying the body of the comment, we need to save the
previous value in the Comment object.

Fixes #487

The code behind 'Cancel' was identical to the code for 'Save'. Since the
commenting API is modifying the body of the comment, we need to save the
previous value in the Comment object.
@laurentlb
Copy link
Contributor Author

laurentlb commented Nov 16, 2021

@rebornix: can you confirm that's the correct approach?

@laurentlb
Copy link
Contributor Author

cc @alexr00

@alexr00 alexr00 self-assigned this Jan 24, 2022
Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix!

@alexr00 alexr00 added this to the January 2022 milestone Jan 24, 2022
@alexr00 alexr00 merged commit 7923482 into microsoft:main Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

comment-sample: cancelSaveNote is not working

3 participants