Skip to content

Commit

Permalink
fix(Flight): Fixes an issue where the 'Pause Flight' button doesn't u…
Browse files Browse the repository at this point in the history
…pdate properly. Closes #2956
  • Loading branch information
alexanderson1993 committed May 25, 2020
1 parent 353f85c commit 2d1f444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default (
)
)*/
.replace("#CHECKED", randomFromList(["Checked", "Unchecked"]))
.replace("#INT", Math.round(Math.random() * 7 + 2))
.replace("#INT", String(Math.round(Math.random() * 7 + 2)))
.replace(
"#CABLE2",
randomFromList(
Expand Down
6 changes: 3 additions & 3 deletions src/containers/FlightDirector/ClientsLobby/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ const ClientLobby: React.FC = () => {

const [pauseFlight] = usePauseFlightMutation({
variables: {flightId},
refetchQueries: [FlightDocument],
refetchQueries: [{query: FlightDocument}],
});
const [resumeFlight] = useLobbyResumeFlightMutation({
variables: {flightId},
refetchQueries: [FlightDocument],
refetchQueries: [{query: FlightDocument}],
});
const [resetFlightMutation] = useResetFlightMutation({variables: {flightId}});
const [deleteFlightMutation] = useDeleteFlightMutation({
Expand All @@ -90,7 +90,7 @@ const ClientLobby: React.FC = () => {
{loading: transmitLoading},
] = useTransmitFlightMutation({
variables: {flightId},
refetchQueries: [FlightDocument],
refetchQueries: [{query: FlightDocument}],
});

const {data, loading} = useFlightQuery();
Expand Down

0 comments on commit 2d1f444

Please sign in to comment.