@cqa-lib/cqa-ui 1.1.398 → 1.1.399
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/step-builder/template-variables-form/template-variables-form.component.mjs +21 -16
- package/fesm2015/cqa-lib-cqa-ui.mjs +20 -15
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +20 -15
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -31470,24 +31470,29 @@ class TemplateVariablesFormComponent {
|
|
|
31470
31470
|
if (variable.selectedTestDataProfileId != null) {
|
|
31471
31471
|
profileToUse = this.parameterOptions.find((testData) => testData.id === variable.selectedTestDataProfileId);
|
|
31472
31472
|
if (profileToUse && profileToUse.data && profileToUse.data.length > 0) {
|
|
31473
|
-
//
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31473
|
+
// If defaultTestDataStartIndex is provided, use it directly
|
|
31474
|
+
if (this.defaultTestDataStartIndex != null && profileToUse.data.length > this.defaultTestDataStartIndex) {
|
|
31475
|
+
dataSetToUse = profileToUse.data[this.defaultTestDataStartIndex];
|
|
31476
|
+
}
|
|
31477
|
+
else {
|
|
31478
|
+
// Find the data set that contains the parameter value
|
|
31479
|
+
const paramName = rawValue;
|
|
31480
|
+
if (paramName && paramName.trim()) {
|
|
31481
|
+
// Search through all data sets to find the one containing this parameter
|
|
31482
|
+
for (const dataSet of profileToUse.data) {
|
|
31483
|
+
if (dataSet && dataSet.data) {
|
|
31484
|
+
// Check if this data set has the parameter
|
|
31485
|
+
if (dataSet.data.hasOwnProperty(paramName)) {
|
|
31486
|
+
dataSetToUse = dataSet;
|
|
31487
|
+
break;
|
|
31488
|
+
}
|
|
31483
31489
|
}
|
|
31484
31490
|
}
|
|
31485
31491
|
}
|
|
31486
|
-
|
|
31487
|
-
|
|
31488
|
-
|
|
31489
|
-
|
|
31490
|
-
dataSetToUse = profileToUse.data[0];
|
|
31492
|
+
// If not found by parameter name, use first data set as fallback
|
|
31493
|
+
if (!dataSetToUse && profileToUse.data.length > 0) {
|
|
31494
|
+
dataSetToUse = profileToUse.data[0];
|
|
31495
|
+
}
|
|
31491
31496
|
}
|
|
31492
31497
|
}
|
|
31493
31498
|
}
|