mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-16 17:46:08 +00:00
fix(nodes): "Invalid input" when saving a node with inbound sync mode "all"
NodeFormSchema required inboundTags, but the inboundTags Form.Item is only mounted when inboundSyncMode is "selected" - antd onFinish omits unmounted fields, so saving with the default "all" mode failed schema validation with Zod generic "Invalid input" (regression from #5178; same class as the earlier pinnedCertSha256 fix). Also tolerate null inboundTags (Go nil slice) for nodes saved before #5178, both in the form schema and NodeRecordSchema, and normalize edit-mode values.
This commit is contained in:
+1
-6
@@ -1,11 +1,6 @@
|
||||
# Shell scripts must stay LF so the Docker build works when the repo is
|
||||
# checked out on Windows (CRLF breaks the script shebang -> exit 127).
|
||||
*.sh text eol=lf
|
||||
DockerInit.sh text eol=lf
|
||||
DockerEntrypoint.sh text eol=lf
|
||||
|
||||
# Generated files (regenerated from Go) must stay LF so a Windows regen
|
||||
# with core.autocrlf=true doesn't show phantom CRLF-only "modified" diffs.
|
||||
frontend/src/generated/** text eol=lf
|
||||
frontend/public/openapi.json text eol=lf
|
||||
frontend\src\test\__snapshots__\** text eol=lf
|
||||
frontend/src/test/__snapshots__/** text eol=lf
|
||||
Reference in New Issue
Block a user