Skip to content

Commit

Permalink
Fix id parameter typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
wakibi committed Jun 15, 2021
1 parent 386c6d2 commit dbb5c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/QueryData/QueryData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { CountdownCircleTimer } from 'react-countdown-circle-timer';

interface RouteParams {
id: string;
id?: string;
}
type QueryDataProps = RouteComponentProps<RouteParams>;

Expand Down Expand Up @@ -154,7 +154,7 @@ const QueryData: FunctionComponent<QueryDataProps> = (props) => {
<Suspense fallback="Data Loading">
<RenderData
useOpData={useOpData}
id={parseInt(id)}
id={parseInt(id as string)}
activeOperation={operationReader}
/>
</Suspense>
Expand Down

0 comments on commit dbb5c22

Please sign in to comment.