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:
Billuc 2024-10-17 15:49:53 +02:00 committed by GitHub
parent 03aad4eba2
commit 2ec4692eaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -339,7 +339,7 @@ const commandsModule = ({
extensionManager,
});
if (promptResult.action !== 1 && promptResult.value) {
if (promptResult.action !== 1 && !promptResult.value) {
return;
}

View File

@ -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