Skip to content

Commit 9937ee3

Browse files
committed
Fix existing bug: refreshAmsApps uses async/awair properly, loader/spinner now shows
1 parent 0af85fb commit 9937ee3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/common/src/components/projects/ProjectDocumentsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ const ProjectDocumentsTab: FC<ProjectDocumentsTabProps> = ({ project }) => {
7676

7777
const refreshAmsApps = async () => {
7878
setIsLoaded(false);
79-
dispatch(
79+
await dispatch(
8080
fetchAmsFinalAppsByProjectSummary(project.project_summary.project_summary_guid)
81-
).then(() => setIsLoaded(true));
81+
);
8282
setIsLoaded(true);
8383
};
8484

0 commit comments

Comments
 (0)