mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-15 19:57:07 +08:00
Fix "Validation failed" when editing env variables with null labels (#3026)
* Initial plan * Fix env variable edit validation error when labels is null --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
parent
a942a5686f
commit
a0d57c78c5
Vendored
+1
-1
@@ -35,7 +35,7 @@ const EnvModal = ({
|
||||
payload = [{ value, name, remarks, labels: labels || [] }];
|
||||
}
|
||||
} else {
|
||||
payload = { ...values, id: env.id };
|
||||
payload = { ...values, labels: values.labels || [], id: env.id };
|
||||
}
|
||||
try {
|
||||
const { code, data } = await request[method](
|
||||
|
||||
Reference in New Issue
Block a user