Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
a177a302
authored
Aug 29, 2024
by
heheer
Committed by
GitHub
Aug 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: plugin input (#2567)
parent
034108c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
projects/app/src/components/core/chat/ChatContainer/PluginRunBox/components/RenderInput.tsx
+2
-1
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodePluginIO/InputEditModal.tsx
+2
-0
No files found.
projects/app/src/components/core/chat/ChatContainer/PluginRunBox/components/RenderInput.tsx
View file @
a177a302
...
...
@@ -58,7 +58,7 @@ const RenderInput = () => {
useEffect
(()
=>
{
if
(
isEqual
(
getValues
(),
defaultFormValues
))
return
;
reset
(
historyFormValues
||
defaultFormValues
);
},
[
defaultFormValues
,
historyFormValues
]);
},
[
defaultFormValues
,
getValues
,
historyFormValues
,
reset
]);
const
isDisabledInput
=
histories
.
length
>
0
;
...
...
@@ -72,6 +72,7 @@ const RenderInput = () => {
name=
{
input
.
key
}
rules=
{
{
validate
:
(
value
)
=>
{
if
(
!
input
.
required
)
return
true
;
if
(
input
.
valueType
===
WorkflowIOValueTypeEnum
.
boolean
)
{
return
value
!==
undefined
;
}
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/NodePluginIO/InputEditModal.tsx
View file @
a177a302
...
...
@@ -199,6 +199,8 @@ const FieldEditModal = ({
if
(
isToolInput
)
{
data
.
toolDescription
=
data
.
description
;
}
else
{
data
.
toolDescription
=
undefined
;
}
data
.
label
=
data
.
key
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment