@visns-studio/visns-components 4.3.7 → 4.3.8
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.
|
@@ -321,6 +321,18 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
321
321
|
(!field.options || field.options.length === 0)
|
|
322
322
|
) {
|
|
323
323
|
errors.push('Please add options for the dropdown.');
|
|
324
|
+
} else if (
|
|
325
|
+
field.type === 'table_text' &&
|
|
326
|
+
(!field.options || field.options.length === 0)
|
|
327
|
+
) {
|
|
328
|
+
errors.push('Please add options for the table.');
|
|
329
|
+
} else if (field.type === 'table_radio') {
|
|
330
|
+
if (!field.options || field.options.length === 0) {
|
|
331
|
+
errors.push('Please add options for the table.');
|
|
332
|
+
}
|
|
333
|
+
if (!field.rows || field.rows.length === 0) {
|
|
334
|
+
errors.push('Please add rows for the table.');
|
|
335
|
+
}
|
|
324
336
|
}
|
|
325
337
|
|
|
326
338
|
if (!field.size || field.size === '') {
|
package/package.json
CHANGED