修改标题换行替换
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user