Repository navigation
fix: default value for nested fields - #5763
Conversation
|
WalkthroughThe pull request introduces the addition of the Changes
Sequence Diagram(s)sequenceDiagram
participant F as Form
participant G as generateInitialValues
participant S as set (lodash)
participant M as mergeWithArrayOverride
F->>G: Request default values
G->>S: Set nested default value for each field
G->>S: Loop through schema defaults using set
G->>M: Merge initialValues with schema defaults
M-->>G: Return merged values
G-->>F: Deliver the final initial values
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
修复表单使用“x.x.x”作为字段名时,默认值无效的问题。
fix: #5762
Type of change
Please delete options that are not relevant.
pnpm-lock.yamlunless you introduce a new test example.Checklist
pnpm run docs:devcommand.pnpm test.feat:,fix:,perf:,docs:, orchore:.Summary by CodeRabbit
New Features
Chores