@visns-studio/visns-components 3.6.6 → 3.6.7
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.
|
@@ -359,6 +359,7 @@ const GenericDynamic = ({
|
|
|
359
359
|
Object.entries(activeForm).forEach(([key, field]) => {
|
|
360
360
|
if (
|
|
361
361
|
field.required === true &&
|
|
362
|
+
field.type !== 'dynamicdata' &&
|
|
362
363
|
(field.value === null || field.value === '')
|
|
363
364
|
) {
|
|
364
365
|
error += `<p>${field.label} is required</p>`;
|
|
@@ -366,7 +367,6 @@ const GenericDynamic = ({
|
|
|
366
367
|
});
|
|
367
368
|
|
|
368
369
|
if (error === '') {
|
|
369
|
-
console.info(setting);
|
|
370
370
|
const res = await CustomFetch(setting.save, 'POST', {
|
|
371
371
|
[primaryKey]: data.id,
|
|
372
372
|
form_data: {
|
|
@@ -423,10 +423,6 @@ const GenericDynamic = ({
|
|
|
423
423
|
}
|
|
424
424
|
}, [data, type]);
|
|
425
425
|
|
|
426
|
-
useEffect(() => {
|
|
427
|
-
console.info(activeForm);
|
|
428
|
-
}, [activeForm]);
|
|
429
|
-
|
|
430
426
|
return (
|
|
431
427
|
<>
|
|
432
428
|
<div className="formSplit">
|
package/package.json
CHANGED