Skip to content

Commit

Permalink
fixed build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed May 3, 2023
1 parent 20eea15 commit 56e60e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shesha-reactjs/src/components/formComponentSelector/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, Input, Select } from 'antd';
import { DefaultOptionType } from 'antd/lib/select';
import { IConfigurableFormComponent, IToolboxComponent } from 'interfaces';
import { DEFAULT_FORM_SETTINGS, IConfigurableFormComponent, IToolboxComponent } from 'interfaces';
import { nanoid } from 'nanoid';
import { useFormDesignerComponents } from 'providers/form/hooks';
import { upgradeComponent } from 'providers/form/utils';
Expand Down Expand Up @@ -75,7 +75,7 @@ export const FormComponentSelector: FC<IFormComponentSelectorProps> = (props) =>
if (toolboxComponent.initModel)
componentModel = toolboxComponent.initModel(componentModel);
if (toolboxComponent.migrator) {
componentModel = upgradeComponent(componentModel, toolboxComponent, { allComponents: {}, componentRelations: {} });
componentModel = upgradeComponent(componentModel, toolboxComponent, DEFAULT_FORM_SETTINGS, { allComponents: {}, componentRelations: {} });
}
return componentModel;
};
Expand Down

0 comments on commit 56e60e3

Please sign in to comment.