데이터 저장 설정 로직 수정

This commit is contained in:
hyeonsu
2025-09-16 14:44:41 +09:00
parent d18e78e8a0
commit c64c374142
4 changed files with 76 additions and 56 deletions

View File

@@ -81,7 +81,7 @@ interface ExtendedJsonRelationship extends JsonRelationship {
id: string;
type: string;
field?: string;
operator_type?: string;
operator?: string;
value?: unknown;
logicalOperator?: string;
groupId?: string;
@@ -96,7 +96,7 @@ interface ExtendedJsonRelationship extends JsonRelationship {
id: string;
type: string;
field?: string;
operator_type?: string;
operator?: string;
value?: unknown;
logicalOperator?: string;
groupId?: string;
@@ -942,7 +942,7 @@ export const DataFlowDesigner: React.FC<DataFlowDesignerProps> = ({
id: string;
type: string;
field?: string;
operator_type?: "=" | "!=" | ">" | "<" | ">=" | "<=" | "LIKE";
operator?: "=" | "!=" | ">" | "<" | ">=" | "<=" | "LIKE";
value?: unknown;
logicalOperator?: "AND" | "OR";
groupId?: string;
@@ -981,7 +981,7 @@ export const DataFlowDesigner: React.FC<DataFlowDesignerProps> = ({
id: cond.id,
type: cond.type,
field: cond.field,
operator: cond.operator_type,
operator: cond.operator,
value: cond.value,
dataType: "string", // 기본값
// 첫 번째 조건이 아닐 때만 logicalOperator 포함
@@ -1025,7 +1025,7 @@ export const DataFlowDesigner: React.FC<DataFlowDesignerProps> = ({
id: string;
type: string;
field?: string;
operator_type?: string;
operator?: string;
value?: unknown;
logicalOperator?: string;
groupId?: string;
@@ -1085,7 +1085,7 @@ export const DataFlowDesigner: React.FC<DataFlowDesignerProps> = ({
field: cond.field,
value: cond.value,
dataType: "string", // 기본값
operator_type: cond.operator_type,
operator: cond.operator,
// 첫 번째 조건이 아닐 때만 logicalOperator 포함
...(index > 0 && cond.logicalOperator && { logicalOperator: cond.logicalOperator }),
};