Skip to content

Commit

Permalink
psp-7162 avoid lease details race condition after updating lease.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinleighsmith committed Nov 1, 2023
1 parent 22874b1 commit 0e27537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/frontend/src/features/leases/hooks/useLeaseDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ export function useLeaseDetail(leaseId?: number) {
return {
lease,
setLease,
refresh: () => {
refresh: async () => {

Check warning on line 104 in source/frontend/src/features/leases/hooks/useLeaseDetail.ts

View check run for this annotation

Codecov / codecov/patch

source/frontend/src/features/leases/hooks/useLeaseDetail.ts#L104

Added line #L104 was not covered by tests
setStaleLastUpdatedBy(true);
getCompleteLease();
await getCompleteLease();

Check warning on line 106 in source/frontend/src/features/leases/hooks/useLeaseDetail.ts

View check run for this annotation

Codecov / codecov/patch

source/frontend/src/features/leases/hooks/useLeaseDetail.ts#L106

Added line #L106 was not covered by tests
},
getCompleteLease,
loading: loading,
Expand Down

0 comments on commit 0e27537

Please sign in to comment.