mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
4.8.10 fix (#2572)
* fix: circle workflow response modal * perf: workflow runtime check
This commit is contained in:
@@ -56,9 +56,9 @@ const FlowController = React.memo(function FlowController() {
|
||||
<>
|
||||
<MiniMap
|
||||
style={{
|
||||
height: 98,
|
||||
width: 184,
|
||||
marginBottom: 72,
|
||||
height: 92,
|
||||
width: 150,
|
||||
marginBottom: 62,
|
||||
borderRadius: '10px',
|
||||
boxShadow: '0px 0px 1px rgba(19, 51, 107, 0.10), 0px 4px 10px rgba(19, 51, 107, 0.10)'
|
||||
}}
|
||||
@@ -68,7 +68,7 @@ const FlowController = React.memo(function FlowController() {
|
||||
position={'bottom-right'}
|
||||
style={{
|
||||
display: 'flex',
|
||||
marginBottom: 24,
|
||||
marginBottom: 16,
|
||||
padding: '5px 8px',
|
||||
background: 'white',
|
||||
borderRadius: '6px',
|
||||
|
@@ -375,15 +375,21 @@ const ConditionSelect = ({
|
||||
return [];
|
||||
}, [valueType]);
|
||||
const filterQuiredConditionList = useMemo(() => {
|
||||
if (required) {
|
||||
return conditionList.filter(
|
||||
(item) =>
|
||||
item.value !== VariableConditionEnum.isEmpty &&
|
||||
item.value !== VariableConditionEnum.isNotEmpty
|
||||
);
|
||||
}
|
||||
return conditionList;
|
||||
}, [conditionList, required]);
|
||||
const list = (() => {
|
||||
if (required) {
|
||||
return conditionList.filter(
|
||||
(item) =>
|
||||
item.value !== VariableConditionEnum.isEmpty &&
|
||||
item.value !== VariableConditionEnum.isNotEmpty
|
||||
);
|
||||
}
|
||||
return conditionList;
|
||||
})();
|
||||
return list.map((item) => ({
|
||||
...item,
|
||||
label: t(item.label)
|
||||
}));
|
||||
}, [conditionList, required, t]);
|
||||
|
||||
return (
|
||||
<MySelect
|
||||
|
@@ -87,7 +87,9 @@ export const getEditorVariables = ({
|
||||
appDetail: AppDetailType;
|
||||
t: TFunction;
|
||||
}) => {
|
||||
const currentNode = nodeList.find((node) => node.nodeId === nodeId)!;
|
||||
const currentNode = nodeList.find((node) => node.nodeId === nodeId);
|
||||
if (!currentNode) return [];
|
||||
|
||||
const nodeVariables = currentNode.inputs
|
||||
.filter((input) => input.canEdit)
|
||||
.map((item) => ({
|
||||
|
Reference in New Issue
Block a user