Skip to content

Commit

Permalink
Update constructor to have state.
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yan <jonoy@canva.com>
  • Loading branch information
Jono Yan committed Apr 13, 2022
1 parent 62d2370 commit 43f8704
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const isErrorTag = ({ key, value }: KeyValuePair) => key === 'error' && (value =
const trackTraceConversions = () => trackConversions(EAltViewActions.Traces);

export default class ResultItem extends React.PureComponent<Props, State> {
constructor(props: Props) {
super(props);
constructor(props: Props, state: State) {
super(props, state);
const { startTime, spans } = props.trace;

const mDate = moment(startTime / 1000);
Expand Down

0 comments on commit 43f8704

Please sign in to comment.