Skip to content

Commit 277778d

Browse files
committed
chore: [PROD-14387] add warning to prevent dynamic values configuration mistakes
1 parent 2b4b081 commit 277778d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils/SolutionsUtils.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ const patchIncompatibleValuesInSolution = (solution) => {
153153
);
154154
parameter.options.canChangeRowsNumber = false;
155155
}
156+
} else if (parameter.varType === 'int' || parameter.varType === 'number') {
157+
if (parameter.defaultValue != null && parameter.options?.dynamicValues != null) {
158+
console.warn(
159+
`In solution configuration, the parameter "${parameter.id}" is defined with ` +
160+
'both options "defaultValue" and "options.dynamicValues": the dynamic query may be ignored.'
161+
);
162+
}
156163
}
157164
});
158165
};

0 commit comments

Comments
 (0)