[WEB-3839] fix: peek overview description version history (#6912)
* fix: handle undefined created_at * chore: add created_by, updated_by updated_at and created_at fields in relation apis * chore: handle undefined date * fix: project typo --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
This commit is contained in:
parent
0ae57b49d2
commit
20132e7544
4 changed files with 27 additions and 5 deletions
|
|
@ -155,7 +155,7 @@ export const IssueMainContent: React.FC<Props> = observer((props) => {
|
|||
<DescriptionVersionsRoot
|
||||
className="flex-shrink-0"
|
||||
entityInformation={{
|
||||
createdAt: new Date(issue.created_at),
|
||||
createdAt: issue.created_at ? new Date(issue.created_at) : new Date(),
|
||||
createdByDisplayName: getUserDetails(issue.created_by ?? "")?.display_name ?? "",
|
||||
id: issueId,
|
||||
isRestoreDisabled: !isEditable || isArchived,
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ export const PeekOverviewIssueDetails: FC<IPeekOverviewIssueDetails> = observer(
|
|||
<DescriptionVersionsRoot
|
||||
className="flex-shrink-0"
|
||||
entityInformation={{
|
||||
createdAt: new Date(issue.created_at),
|
||||
createdAt: issue.created_at ? new Date(issue.created_at) : new Date(),
|
||||
createdByDisplayName: getUserDetails(issue.created_by ?? "")?.display_name ?? "",
|
||||
id: issueId,
|
||||
isRestoreDisabled: disabled || isArchived,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue