4.8.10 fix (#2572)

* fix: circle workflow response modal

* perf: workflow runtime check
This commit is contained in:
Archer
2024-08-29 18:00:56 +08:00
committed by GitHub
parent 322ca757af
commit 813eaacfd0
11 changed files with 143 additions and 97 deletions

View File

@@ -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',

View File

@@ -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

View File

@@ -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) => ({