Skip to content

Commit 40dbd20

Browse files
authored
Merge pull request #1061 from JulianKniephoff/useless-then
Remove useless calls to `then`
2 parents b7ececd + 42ce24f commit 40dbd20

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/events/partials/modals/EventDetails.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ const EventDetails = ({
8181

8282
useEffect(() => {
8383
dispatch(removeNotificationWizardForm());
84-
dispatch(fetchMetadata(eventId)).then();
85-
dispatch(fetchSchedulingInfo(eventId)).then();
86-
dispatch(fetchEventStatistics(eventId)).then();
87-
dispatch(fetchAssetUploadOptions()).then();
84+
dispatch(fetchMetadata(eventId));
85+
dispatch(fetchSchedulingInfo(eventId));
86+
dispatch(fetchEventStatistics(eventId));
87+
dispatch(fetchAssetUploadOptions());
8888
dispatch(fetchEventDetailsTobira(eventId));
8989
// eslint-disable-next-line react-hooks/exhaustive-deps
9090
}, []);

0 commit comments

Comments
 (0)