Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c3129663
authored
Jan 15, 2025
by
Netfan
Committed by
GitHub
Jan 15, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: form update state error before form mounted (#5406)
1 parent
816d1f5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
packages/@core/ui-kit/form-ui/src/form-api.ts
packages/@core/ui-kit/form-ui/src/form-api.ts
View file @
c312966
...
...
@@ -404,9 +404,8 @@ export class FormApi {
const
deletedSchema
=
prevSchema
.
filter
(
(
item
)
=>
!
currentFields
.
has
(
item
.
fieldName
),
);
for
(
const
schema
of
deletedSchema
)
{
this
.
form
?.
setFieldValue
(
schema
.
fieldName
,
undefined
);
this
.
form
?.
setFieldValue
?.
(
schema
.
fieldName
,
undefined
);
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment