Skip to content

Commit

Permalink
front: skip infra request when infraID is undefined
Browse files Browse the repository at this point in the history
Closes: #8074
  • Loading branch information
emersion authored and SharglutDev committed Jul 16, 2024
1 parent d176813 commit ae17c45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions front/src/modules/pathfinding/hook/useInfraStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default function useInfraStatus() {
{
refetchOnMountOrArgChange: true,
pollingInterval: !isInfraLoaded ? 1000 : undefined,
skip: !infraId,
}
);

Expand Down

0 comments on commit ae17c45

Please sign in to comment.