@@ -38,14 +38,16 @@ exports.create = function (api) {
3838 const suppliedGathering = msg . gathering || { }
3939
4040 // allow override of resolved about messages for preview in modules/gathering/sheet/edit.js
41- const about = msg . key ? extend ( {
42- hidden : api . about . obs . valueFrom ( msg . key , 'hidden' , yourId ) ,
43- image : suppliedGathering . image || api . about . obs . latestValue ( msg . key , 'image' ) ,
44- title : suppliedGathering . title || api . about . obs . latestValue ( msg . key , 'title' ) ,
45- description : suppliedGathering . description || api . about . obs . latestValue ( msg . key , 'description' ) ,
46- location : suppliedGathering . location || api . about . obs . latestValue ( msg . key , 'location' ) ,
47- startDateTime : suppliedGathering . startDateTime || api . about . obs . latestValue ( msg . key , 'startDateTime' )
48- } , msg . previewAbout ) : msg . previewAbout
41+ const about = msg . key
42+ ? extend ( {
43+ hidden : api . about . obs . valueFrom ( msg . key , 'hidden' , yourId ) ,
44+ image : suppliedGathering . image || api . about . obs . latestValue ( msg . key , 'image' ) ,
45+ title : suppliedGathering . title || api . about . obs . latestValue ( msg . key , 'title' ) ,
46+ description : suppliedGathering . description || api . about . obs . latestValue ( msg . key , 'description' ) ,
47+ location : suppliedGathering . location || api . about . obs . latestValue ( msg . key , 'location' ) ,
48+ startDateTime : suppliedGathering . startDateTime || api . about . obs . latestValue ( msg . key , 'startDateTime' )
49+ } , msg . previewAbout )
50+ : msg . previewAbout
4951
5052 const attendees = msg . key ? computed ( [ api . about . obs . socialValues ( msg . key , 'attendee' ) ] , getAttendees ) : [ ]
5153 const disableActions = ! ! msg . previewAbout
0 commit comments