Skip to content

Commit

Permalink
add fallback activity if field has been deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
MarconLP committed Feb 15, 2023
1 parent f9984c4 commit 3d962be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ function Activity({ timestamp, activity, boardId }) {
x => x._id === activity.change.field
)

if (field.type === 'status') return getStatusField(field)
if (field?.type === 'status') return getStatusField(field)
else return <span>updated a deleted value</span>
}

return (
Expand Down

1 comment on commit 3d962be

@vercel
Copy link

@vercel vercel bot commented on 3d962be Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tablane – ./

tablane-tablane.vercel.app
tablane-git-master-tablane.vercel.app
tablane.vercel.app
app.tablane.net

Please sign in to comment.