Skip to content

Commit 64d9bec

Browse files
authored
Merge pull request #2035 from IFRCGo/fix/dref-export-scope-and-scale
Fix dref export scope and scale
2 parents 76a8be0 + 1cf2aca commit 64d9bec

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/many-pans-tell.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"go-web-app": minor
3+
---
4+
5+
Update DREF export
6+
7+
- Add scope and scale for Response DREFs

app/src/views/DrefApplicationExport/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export function Component() {
393393

394394
const eventDescriptionDefined = (type_of_dref !== DREF_TYPE_IMMINENT || !is_dref_imminent_v2)
395395
&& isTruthyString(event_description?.trim());
396-
const eventScopeDefined = (type_of_dref === DREF_TYPE_RESPONSE && !!is_dref_imminent_v2)
396+
const eventScopeDefined = type_of_dref === DREF_TYPE_RESPONSE
397397
&& isTruthyString(event_scope?.trim());
398398
const sourceInformationDefined = isDefined(source_information)
399399
&& source_information.length > 0;

0 commit comments

Comments
 (0)