Skip to content

Commit

Permalink
show segue data within Suites
Browse files Browse the repository at this point in the history
[#9]
  • Loading branch information
alxndr committed Jul 16, 2020
1 parent c27da7c commit d39a43b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/setlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export default function Setlist(props) {
? songData.nicknames.split(';', 1)
: songData.title
const teasesArray = filter(propEq('performance_id', performanceData.id))(teases)
const segueData = find(propEq('from_perf_id', performanceData.id))(segues)
return <li key={performanceData.id}>
<Link to={url(routes.song, {id: songData.id})}>
{displayName}
</Link>
{performanceData.notes && <PerfNote notes={performanceData.notes} />}
{teasesArray.length ? <TeasesNote list={teasesArray} /> : false}
{segueData && <Segue {...segueData} />}
</li>
})}
</ul>
Expand Down

0 comments on commit d39a43b

Please sign in to comment.