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:
parent
03aad4eba2
commit
2ec4692eaf
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user