]> git.localhorst.tv Git - alttp.git/commitdiff
show event title if episode has none
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 24 Jul 2023 12:01:25 +0000 (14:01 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 24 Jul 2023 12:01:25 +0000 (14:01 +0200)
resources/js/components/episodes/Item.js

index 3545e7734586a1f3006ad761621df9061fb15d10..9acb95d29859b0bb6242312edccb333c8918061b 100644 (file)
@@ -55,9 +55,9 @@ const Item = ({ episode, onAddRestream, onApply, onEditRestream, user }) => {
                <div className="d-flex flex-column flex-fill">
                        <div className="d-flex align-items-start justify-content-between">
                                <div>
-                                       {episode.title ?
+                                       {episode.title || episode.event ?
                                                <div className="episode-title fs-4">
-                                                       {episode.title}
+                                                       {episode.title || episode.event.title}
                                                </div>
                                        : null}
                                        {episode.comment ?