Skip to content

Commit

Permalink
Merge pull request #568 from bcgsc/bugfix/DEVSU-2438-analyst-comment-…
Browse files Browse the repository at this point in the history
…deletion

[DEVSU-2438] bugfix: add null check to updated comment instead of checking loose true/false
  • Loading branch information
kttkjl authored Nov 6, 2024
2 parents 0c54e80 + 53b82c1 commit 7ed70d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/ReportView/components/AnalystComments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const AnalystComments = ({

const handleEditorClose = useCallback(async (editedComments?: string) => {
try {
if (editedComments) {
if (editedComments !== null) {
const sanitizedText = sanitizeHtml(editedComments, {
allowedAttributes: {
a: ['href', 'target', 'rel'],
Expand Down

0 comments on commit 7ed70d5

Please sign in to comment.