Skip to content

Commit

Permalink
fix: commit highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhong committed Sep 20, 2019
1 parent bd277a7 commit 2712284
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/DatasetSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const DatasetSidebar: React.FunctionComponent<DatasetSidebarProps> = (props) =>
const {
activeTab,
component: selectedComponent,
commitComponent: selectedCommit,
commit: selectedCommit,
peername,
name
} = selections
Expand Down Expand Up @@ -162,7 +162,8 @@ const DatasetSidebar: React.FunctionComponent<DatasetSidebarProps> = (props) =>
hidden = {activeTab === 'status'}
>
{
history.value.map(({ path, timestamp, title }) => {
history.value.map((props) => {
const { path, timestamp, title } = props
const timeMessage = moment(timestamp).fromNow()
return (
<HistoryListItem
Expand Down

0 comments on commit 2712284

Please sign in to comment.