super-page-runtime 2.0.40-beta1 → 2.0.42
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.
|
@@ -265,7 +265,7 @@ function validateWorkflowFormDataModel(dataModel, pageContext) {
|
|
|
265
265
|
function validateCommonFormDataModel(dataModel, pageContext, rules) {
|
|
266
266
|
return new Promise((resolve, reject) => {
|
|
267
267
|
const handleModels = JSON.parse(JSON.stringify(dataModel));
|
|
268
|
-
if (!rules) {
|
|
268
|
+
if (!rules && Object.keys(rules).length === 0) {
|
|
269
269
|
resolve(handleModels);
|
|
270
270
|
} else {
|
|
271
271
|
const validateEntityResult = validator(handleModels, rules, null, null, true);
|