fix(createReport): early return on cancel in prompt (#4243)

Co-authored-by: Luc Billaud <luc.billaud@creatis.insa-lyon.fr>
This commit is contained in:
BillucandLuc Billaud authored and GitHub committed 2024-10-17 09:49:53 -04:00
1 parent 03aad4eba2
commit 2ec4692eaf
2 files changed
+3 -1

No files matched your search

@@ -339,7 +339,7 @@ const commandsModule = ({
extensionManager,
});
if (promptResult.action !== 1 && promptResult.value) {
if (promptResult.action !== 1 && !promptResult.value) {
return;
}
@@ -21,6 +21,8 @@ async function createReportAsync({
try {
const naturalizedReport = await getReport();
if (!naturalizedReport) return;
// The "Mode" route listens for DicomMetadataStore changes
// When a new instance is added, it listens and
// automatically calls makeDisplaySets