Closed tiagobento closed 2 months ago
main
branch of kie-tools
.
updateExpressionWidths.tsx
and boxedExpressionScreen.tsx
files to set a default value when the <kie:width>
tag doesn't exist.Try to find a workaround to recover from the error without the fix:
kie:width
tags with empty values, e.g.:
<kie:ComponentWidths dmnElementRef="_EF7F404A-939E-4889-95D8-E4053DD1EED9">
<kie:width />
<kie:width />
<kie:width />
<kie:width />
<kie:width />
<kie:width>106</kie:width>
</kie:ComponentWidths>
iv. Give all the kie:width
tags a value, e.g.:
<kie:ComponentWidths dmnElementRef="_EF7F404A-939E-4889-95D8-E4053DD1EED9">
<kie:width>106</kie:width>
<kie:width>106</kie:width>
<kie:width>106</kie:width>
<kie:width>106</kie:width>
<kie:width>106</kie:width>
<kie:width>106</kie:width>
</kie:ComponentWidths>
v. Upload the updated file and the editor should now load properly.
kie:ComponentWidths
tag defined with relevant <kie:width>
tags, e.g. the sample.dmn
or drawing1-4.dmn.kie:widths
automatically, e.g.
<kie:ComponentsWidthsExtension>
<kie:ComponentWidths dmnElementRef="_AD31A7E4-7C60-48EC-8D69-A9CAD9E57B82">
<kie:width>60</kie:width>
<kie:width>118</kie:width>
<kie:width>118</kie:width>
<kie:width>240</kie:width>
</kie:ComponentWidths>
</kie:ComponentsWidthsExtension>
<kie:width>
tags.
<di:extension>
<kie:ComponentsWidthsExtension>
<kie:ComponentWidths dmnElementRef="_181ebf70-8dd9-4ca2-9c4b-3410f9fab748"/>
</kie:ComponentsWidthsExtension>
</di:extension>
Steps to reproduce:
online-editor
(KIE Sandbox) from on main branch.Loan Pre-Qualification
Decision and click onEdit
.You'll see a blank screen, with an error on the console:
Error: Stopping NaN from propagating. Tried to parse from (float) ''
Goals of this task:
main
branch ofkie-tools
.