fix:Form properties, no option for selecting submit button.

This commit is contained in:
arpitnath 2023-10-01 18:33:29 +05:30
parent 9493cdbbbe
commit 63e28931b0

View file

@ -25,7 +25,7 @@ export const Form = ({
const { id } = component;
const newOptions = [{ name: 'None', value: 'none' }];
Object.entries(allComponents).forEach(([componentId, component]) => {
if (component.parent === id && component?.component?.component === 'Button') {
if (component.component.parent === id && component?.component?.component === 'Button') {
newOptions.push({ name: component.component.name, value: componentId });
}
});