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
b7eb4c15
authored
Dec 13, 2024
by
Archer
Committed by
GitHub
Dec 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add multiple selector null check (#3392)
parent
41a8536c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
packages/web/components/common/MySelect/MultipleRowSelect.tsx
+2
-1
projects/app/src/web/core/workflow/utils.ts
+1
-1
No files found.
packages/web/components/common/MySelect/MultipleRowSelect.tsx
View file @
b7eb4c15
...
...
@@ -184,8 +184,9 @@ export const MultipleRowArraySelect = ({
const
[
navigationPath
,
setNavigationPath
]
=
useState
<
string
[]
>
([]);
// Make sure the value is an array of arrays
const
formatValue
=
useMemo
(()
=>
{
return
Array
.
isArray
(
value
)
?
value
:
[];
return
Array
.
isArray
(
value
)
?
value
.
filter
((
v
)
=>
Array
.
isArray
(
v
))
:
[];
},
[
value
]);
// Close when clicking outside
...
...
projects/app/src/web/core/workflow/utils.ts
View file @
b7eb4c15
...
...
@@ -328,7 +328,7 @@ export const filterWorkflowNodeOutputsByType = (
valueType
===
WorkflowIOValueTypeEnum
.
arrayAny
||
!
output
.
valueType
||
output
.
valueType
===
WorkflowIOValueTypeEnum
.
any
||
validTypeMap
[
valueType
].
includes
(
output
.
valueType
)
validTypeMap
[
valueType
]
?
.
includes
(
output
.
valueType
)
);
};
...
...
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