You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ti...@apache.org on 2025/03/20 14:25:32 UTC
(incubator-kie-tools) branch main updated: kie-issues#1883: New Test Scenario wrongly manages empty cells (#3015)
This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 0c0e367da5c kie-issues#1883: New Test Scenario wrongly manages empty cells (#3015)
0c0e367da5c is described below
commit 0c0e367da5c84158b7544368ed996c9a2845bbc8
Author: Yeser Amer <ye...@ibm.com>
AuthorDate: Thu Mar 20 15:25:27 2025 +0100
kie-issues#1883: New Test Scenario wrongly manages empty cells (#3015)
Merging so that we can cherry-pick into 10.1. Thanks @yesamer!
---
packages/scesim-editor/src/mutations/addColumn.ts | 1 -
packages/scesim-editor/src/mutations/addRow.ts | 1 -
packages/scesim-editor/src/mutations/updateCell.ts | 3 ++-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/packages/scesim-editor/src/mutations/addColumn.ts b/packages/scesim-editor/src/mutations/addColumn.ts
index 1791db1fe62..2071ee1260b 100644
--- a/packages/scesim-editor/src/mutations/addColumn.ts
+++ b/packages/scesim-editor/src/mutations/addColumn.ts
@@ -145,7 +145,6 @@ function addColumn({
name: { __$$text: newFactMapping.factIdentifier.name.__$$text },
className: { __$$text: newFactMapping.factIdentifier.className.__$$text },
},
- rawValue: { __$$text: "", "@_class": "string" },
});
});
}
diff --git a/packages/scesim-editor/src/mutations/addRow.ts b/packages/scesim-editor/src/mutations/addRow.ts
index 65887921b4e..2b19bc37b2f 100644
--- a/packages/scesim-editor/src/mutations/addRow.ts
+++ b/packages/scesim-editor/src/mutations/addRow.ts
@@ -42,7 +42,6 @@ export function addRow({
name: { __$$text: factMapping.factIdentifier.name!.__$$text },
className: { __$$text: factMapping.factIdentifier.className!.__$$text },
},
- rawValue: { __$$text: "", "@_class": "string" },
};
});
diff --git a/packages/scesim-editor/src/mutations/updateCell.ts b/packages/scesim-editor/src/mutations/updateCell.ts
index 7484018db84..812bb86d4d5 100644
--- a/packages/scesim-editor/src/mutations/updateCell.ts
+++ b/packages/scesim-editor/src/mutations/updateCell.ts
@@ -48,5 +48,6 @@ export function updateCell({
factMappingValue.expressionIdentifier.type?.__$$text === factMapping!.expressionIdentifier.type?.__$$text
);
const factMappingValueToUpdate = factMappingValues[factMappingValueToUpdateIndex];
- factMappingValueToUpdate.rawValue = { __$$text: value, "@_class": "string" };
+ factMappingValueToUpdate.rawValue =
+ value !== undefined && value !== "" ? { __$$text: value, "@_class": "string" } : undefined;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org