Skip to content

Commit 471ac4b

Browse files
authored
Fixed Failed to promote VUS to mutation (oncokb#552)
1 parent 46e265b commit 471ac4b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/webapp/app/shared/table/VusTable.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,10 @@ const VusTable = ({
309309
try {
310310
const aggregateComments = getAllCommentsString(vusToPromote.name_comments || {});
311311
handleDelete();
312-
const addMutationResult = await addMutation?.(firebaseMutationsPath, newMutation, isGermline, true, aggregateComments).then(
313-
() => {
314-
notifySuccess(`Promoted ${vusToPromote.name}`, { position: 'top-right' });
315-
},
316-
);
317-
if (addMutationResult === undefined) {
312+
const addMutationResult = await addMutation?.(firebaseMutationsPath, newMutation, isGermline, true, aggregateComments);
313+
if (addMutationResult) {
314+
notifySuccess(`Promoted ${vusToPromote.name}`, { position: 'top-right' });
315+
} else {
318316
throw new SentryError('Failed to promote VUS to mutation', { newMutation, firebaseMutationsPath, isGermline });
319317
}
320318
setOpenMutationCollapsibleListKey?.(addMutationResult);

0 commit comments

Comments
 (0)