Skip to content

Commit 4f63466

Browse files
samsharabarshathakuri
authored andcommitted
fix: add source_information to DREF Final Report and DREF Operational Report
1 parent 2affa5e commit 4f63466

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/views/DrefFinalReportExport/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,6 @@ export function Component() {
481481
<DescriptionText className={styles.link}>
482482
<Link
483483
href={source.source_link}
484-
external
485-
withUnderline
486484
>
487485
{source?.source_link}
488486
</Link>

src/views/DrefFinalReportForm/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export function Component() {
222222
cover_image_file,
223223
images_file,
224224
photos_file,
225+
source_information,
225226
...otherValues
226227
} = removeNull(response);
227228

@@ -245,6 +246,7 @@ export function Component() {
245246
? injectClientId(cover_image_file)
246247
: undefined,
247248
images_file: images_file?.map(injectClientId),
249+
source_information: source_information?.map(injectClientId),
248250
});
249251

250252
setDistrictOptions(response.district_details);

src/views/DrefOperationalUpdateExport/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,6 @@ export function Component() {
552552
<DescriptionText className={styles.link}>
553553
<Link
554554
href={source.source_link}
555-
external
556-
withUnderline
557555
>
558556
{source?.source_link}
559557
</Link>

src/views/DrefOperationalUpdateForm/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import {
99
useParams,
1010
} from 'react-router-dom';
1111
import {
12-
errorWarningFillIcon,
13-
downloadTwoLineIcon,
14-
shareLineIcon,
12+
ErrorWarningFillIcon,
13+
DownloadTwoLineIcon,
14+
ShareLineIcon,
1515
} from '@ifrc-go/icons';
1616
import {
1717
useForm,
@@ -253,6 +253,7 @@ export function Component() {
253253
changing_budget,
254254
request_for_second_allocation,
255255
has_forecasted_event_materialize,
256+
source_information,
256257
// disability_people_per,
257258
// people_per_urban,
258259
// people_per_local,
@@ -292,6 +293,7 @@ export function Component() {
292293
changing_budget: changing_budget ?? false,
293294
request_for_second_allocation: request_for_second_allocation ?? false,
294295
has_forecasted_event_materialize: has_forecasted_event_materialize ?? false,
296+
source_information: source_information?.map(injectClientId),
295297
});
296298

297299
setDistrictOptions(response.district_details);

0 commit comments

Comments
 (0)