Skip to content

Commit

Permalink
fixing issue of New DMN Editor is getting crashed when working with D…
Browse files Browse the repository at this point in the history
…ecision Table Annotation
  • Loading branch information
chinnamatli kusumalatha authored and chinnamatli kusumalatha committed Jan 31, 2025
1 parent 54180b4 commit 0d3c991
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ export function DecisionTableExpression({
: DECISION_TABLE_ANNOTATION_DEFAULT_WIDTH;

const nextValues = [...prev];
const minValuesLength = args.beforeIndex + 1 + args.columnsCount;
const minValuesLength = args.beforeIndex + args.columnsCount;
nextValues.push(...Array(Math.max(0, minValuesLength - nextValues.length)));
for (let i = 0; i < args.columnsCount; i++) {
const widthIndex = args.beforeIndex + i + 1; // + 1 to account for the rowIndex column.
Expand Down

0 comments on commit 0d3c991

Please sign in to comment.