diff --git a/src/publish_pages/publishBall/index.tsx b/src/publish_pages/publishBall/index.tsx index 51cb87b..899935c 100644 --- a/src/publish_pages/publishBall/index.tsx +++ b/src/publish_pages/publishBall/index.tsx @@ -381,6 +381,7 @@ const PublishBall: React.FC = () => { image_list, wechat, id, + title, ...rest } = formData[0]; const { min, max, organizer_joined } = players; @@ -389,6 +390,7 @@ const PublishBall: React.FC = () => { ...activityInfo, ...descriptionInfo, ...timeRange, + title: title?.replace(/\n/g, ''), max_players: max, min_players: min, organizer_joined: organizer_joined === true ? 1 : 0, @@ -453,6 +455,7 @@ const PublishBall: React.FC = () => { skill_level, is_substitute_supported, id, + title, ...rest } = item; const { min, max, organizer_joined } = players; @@ -461,6 +464,7 @@ const PublishBall: React.FC = () => { ...activityInfo, ...descriptionInfo, ...timeRange, + title: title?.replace(/\n/g, ' '), max_players: max, min_players: min, organizer_joined: organizer_joined === true ? 1 : 0,