fixed form builder object bug

This commit is contained in:
IDONTSUDO 2024-10-05 12:59:11 +03:00
parent 2b4795dfc2
commit c19e4c684e
6 changed files with 17 additions and 8 deletions

View file

@ -15,6 +15,7 @@ import { TemplateModelCard } from "./ui/template_model_card";
import { Icon } from "../../../core/ui/icons/icons";
import { useStore } from "../../../core/helper/use_store";
import { FormBuilderValidationModel } from "../../../core/model/form_builder_validation_model";
import { InputV2 } from "../../../core/ui/input/input_v2";
interface IItem {
name: string;
@ -144,15 +145,15 @@ export const CalculationInstanceScreen = observer(() => {
/>
<CoreInput label="Имя" onChange={(text) => store.updateForm({ name: text })} />
<CoreInput label="Команда для запуска" onChange={(text) => store.updateForm({ script: text })} />
<CoreInput
<InputV2
label="FormBuilder Result"
onChange={(text) => (store.viewModel.formBuilder.result = text)}
style={{ height: 200, overflow: "overlay" }}
// style={{ height: 200, overflow: "overlay" }}
/>
<CoreInput
<InputV2
label="FormBuilder Context"
onChange={(text) => (store.viewModel.formBuilder.context = text)}
style={{ height: 200, overflow: "overlay" }}
// style={{ height: 200, overflow: "overlay" }}
/>
<div style={{ height: 10 }} />
<CoreButton