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 94c68c96
authored
Nov 17, 2024
by
huangxiaomin
Committed by
GitHub
Nov 17, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: fieldMappingTime data error when clear inputvalue (#4906)
1 parent
77083abc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
packages/@core/ui-kit/form-ui/src/components/form-actions.vue
packages/@core/ui-kit/form-ui/src/components/form-actions.vue
View file @
94c68c9
...
...
@@ -91,6 +91,11 @@ function handleRangeTimeValue(values: Record<string, any>) {
fieldMappingTime
.
forEach
(
([
field
,
[
startTimeKey
,
endTimeKey
],
format
=
'YYYY-MM-DD'
])
=>
{
if
(
startTimeKey
&&
endTimeKey
&&
values
[
field
]
===
null
)
{
delete
values
[
startTimeKey
];
delete
values
[
endTimeKey
];
}
if
(
!
values
[
field
])
{
delete
values
[
field
];
return
;
...
...
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