[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:
Aaryan Khandelwal 2025-04-10 16:22:26 +05:30 committed by GitHub
parent 0ae57b49d2
commit 20132e7544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 5 deletions

View file

@ -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,

View file

@ -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,