Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
fix: Fix issue with id being undefined (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
taustad authored Jul 26, 2023
1 parent aa72d79 commit 69a6165
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ export default (
setTagInReview: Dispatch<SetStateAction<string | undefined>>,
setRevisionInReview: Dispatch<SetStateAction<string | undefined>>,
) => {
const { value, valueFormatted, data: { id, revisionContainer: { id: revisionId } } } = params
const cellValue = valueFormatted || value
const cellValue = params.valueFormatted ? params.valueFormatted : params.value

const buttonClicked = () => {
setReviewModalOpen(true)
setTagInReview(id)
setRevisionInReview(revisionId)
setTagInReview(params.data.id)
setRevisionInReview(params.data.revisionContainer.id)
}

return (
Expand Down

0 comments on commit 69a6165

Please sign in to comment.