diff --git a/src/current/pages/SourceWeekDetails.jsx b/src/current/pages/SourceWeekDetails.jsx index 652f0c7ad3..0e15f9844d 100644 --- a/src/current/pages/SourceWeekDetails.jsx +++ b/src/current/pages/SourceWeekDetails.jsx @@ -191,7 +191,7 @@ const SourceWeekDetails = () => { obj.mwb_ayf_part4_type = Ass4Type === '' ? undefined : +Ass4Type; obj.mwb_ayf_part4_time = Ass4Time === '' ? undefined : +Ass4Time; obj.mwb_ayf_part4 = Ass4Src; - obj.mwb_song_middle = +SongMiddle; + obj.mwb_song_middle = isNaN(SongMiddle) ? SongMiddle : +SongMiddle; obj.mwb_lc_cbs = CBSSrc; obj.mwb_song_conclude = isNaN(SongConclude) ? SongConclude : +SongConclude; obj.mwb_song_conclude_override = isNaN(SongConcludeOverride) ? SongConcludeOverride : +SongConcludeOverride; @@ -508,7 +508,19 @@ const SourceWeekDetails = () => { {t('livingPart')} - + {!isNaN(SongMiddle) && } + {isNaN(SongMiddle) && ( + setSongMiddle(value)} + /> + )} diff --git a/src/current/views/S140.jsx b/src/current/views/S140.jsx index 42dd060e55..4cdd0f176d 100644 --- a/src/current/views/S140.jsx +++ b/src/current/views/S140.jsx @@ -332,6 +332,15 @@ const S140 = ({ data, currentSchedule }) => { return src; }; + const getMiddleSong = (weekItem) => { + let src = t('song', { lng: source_lang }); + + if (isNaN(weekItem.sourceData.mwb_song_middle)) return weekItem.sourceData.mwb_song_middle; + + src += ` ${weekItem.sourceData.mwb_song_middle}`; + return src; + }; + const getConcludingSong = (weekItem) => { let src = t('song', { lng: source_lang }); @@ -585,10 +594,7 @@ const S140 = ({ data, currentSchedule }) => { {/* Middle Song */} - +