Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0359dfb8
authored
Jul 02, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
fix: correct validation logic for redemption name input in EditRedemption component
parent
c7b3b8d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
web/src/pages/Redemption/EditRedemption.js
+2
-3
No files found.
web/src/pages/Redemption/EditRedemption.js
View file @
0359dfb8
...
@@ -78,8 +78,7 @@ const EditRedemption = (props) => {
...
@@ -78,8 +78,7 @@ const EditRedemption = (props) => {
const
submit
=
async
(
values
)
=>
{
const
submit
=
async
(
values
)
=>
{
let
name
=
values
.
name
;
let
name
=
values
.
name
;
if
(
!
isEdit
&&
values
.
name
===
''
)
{
if
(
!
isEdit
&&
(
!
name
||
name
===
''
))
{
name
=
renderQuota
(
values
.
quota
);
name
=
renderQuota
(
values
.
quota
);
}
}
setLoading
(
true
);
setLoading
(
true
);
...
@@ -209,7 +208,7 @@ const EditRedemption = (props) => {
...
@@ -209,7 +208,7 @@ const EditRedemption = (props) => {
label
=
{
t
(
'名称'
)}
label
=
{
t
(
'名称'
)}
placeholder
=
{
t
(
'请输入名称'
)}
placeholder
=
{
t
(
'请输入名称'
)}
style
=
{{
width
:
'100%'
}}
style
=
{{
width
:
'100%'
}}
rules
=
{
isEdit
?
[]
:
[{
required
:
true
,
message
:
t
(
'请输入名称'
)
}]}
rules
=
{
!
isEdit
?
[]
:
[{
required
:
true
,
message
:
t
(
'请输入名称'
)
}]}
showClear
showClear
/>
/>
<
/Col
>
<
/Col
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment