Skip to content

Commit

Permalink
__41677text is never undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Dec 28, 2023
1 parent 823ed02 commit b2cb50f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/dmn-editor/src/boxedExpressions/beeToDmn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ export function beeToDmn(
contextEntry: [
{
"@_id": expression.classFieldId,
expression: { __$$element: "literalExpression", text: { __$$text: expression.className! } },
expression: { __$$element: "literalExpression", text: { __$$text: expression.className ?? "" } },
variable: { "@_name": DMN15_SPEC.BOXED.FUNCTION.JAVA.classFieldName },
},
{
"@_id": expression.methodFieldId,
expression: { __$$element: "literalExpression", text: { __$$text: expression.methodName! } },
expression: { __$$element: "literalExpression", text: { __$$text: expression.methodName ?? "" } },
variable: { "@_name": DMN15_SPEC.BOXED.FUNCTION.JAVA.methodSignatureFieldName },
},
],
Expand All @@ -160,12 +160,12 @@ export function beeToDmn(
contextEntry: [
{
"@_id": expression.documentFieldId,
expression: { __$$element: "literalExpression", text: { __$$text: expression.document! } },
expression: { __$$element: "literalExpression", text: { __$$text: expression.document ?? "" } },
variable: { "@_name": DMN15_SPEC.BOXED.FUNCTION.PMML.documentFieldName },
},
{
"@_id": expression.modelFieldId,
expression: { __$$element: "literalExpression", text: { __$$text: expression.model! } },
expression: { __$$element: "literalExpression", text: { __$$text: expression.model ?? "" } },
variable: { "@_name": DMN15_SPEC.BOXED.FUNCTION.PMML.modelFieldName },
},
],
Expand Down Expand Up @@ -214,7 +214,7 @@ export function beeToDmn(
"@_id": expression.id,
"@_label": expression.name,
"@_typeRef": expression.dataType,
text: { __$$text: expression.content! },
text: { __$$text: expression.content ?? "" },
};
case ExpressionDefinitionLogicType.Relation:
__widths.set(expression.id, [BEE_TABLE_ROW_INDEX_COLUMN_WIDTH]);
Expand Down

0 comments on commit b2cb50f

Please sign in to comment.