Skip to content

Commit

Permalink
fix: edit update and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojsnunes committed Oct 27, 2024
1 parent 769db7d commit 7906dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/Research/Content/ResearchArticle.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ describe('Research Article', () => {
_modified: _created,
title: 'A title',
description: 'A description',
status: ResearchUpdateStatus.PUBLISHED,
})
;(useResearchStore as Mock).mockReturnValue(mockResearchStore)
// Act
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Research/Content/ResearchArticle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const ResearchArticle = observer(
update={update}
key={update._id}
updateIndex={index}
isEditable={false}
isEditable={isEditable}
slug={research.slug}
/>
))}
Expand Down

0 comments on commit 7906dcc

Please sign in to comment.