-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[POR-1673] Implement Job History in New View #3614
Conversation
); | ||
|
||
useEffect(() => { | ||
if (data != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is going to be undefined
by default
import { timeFrom } from "shared/string_utils"; | ||
|
||
export const ranFor = (start: string, end?: string | number) => { | ||
const duration = timeFrom(start, end); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might make sense to do date processing like this on actual timestamps in the future instead of on strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we should swap this out with a library that does this in the future, I just copied this from existing
POR-1673
What does this PR do?
Screen.Recording.2023-09-20.at.3.18.40.PM.mov