added format command and added trailing commas to reduce conflicts

This commit is contained in:
dswbx
2025-02-26 20:06:03 +01:00
parent 88b5359f1c
commit 7743f71a11
414 changed files with 3622 additions and 3610 deletions

View File

@@ -8,7 +8,7 @@ import { MantineSelect } from "ui/components/form/hook-form-mantine/MantineSelec
import { useEvent } from "ui/hooks/use-event";
import {
EntityFieldsForm,
type EntityFieldsFormRef
type EntityFieldsFormRef,
} from "ui/routes/data/forms/entity.fields.form";
import { ModalBody, ModalFooter, type TCreateModalSchema, useStepContext } from "./CreateModal";
@@ -25,9 +25,9 @@ export function StepEntityFields() {
fields: defaultFields,
config: {
sort_field: "id",
sort_dir: "asc"
}
})
sort_dir: "asc",
},
}),
);
const {
control,
@@ -35,11 +35,11 @@ export function StepEntityFields() {
getValues,
handleSubmit,
watch,
setValue
setValue,
} = useForm({
mode: "onTouched",
resolver: typeboxResolver(schema),
defaultValues: initial as NonNullable<Schema>
defaultValues: initial as NonNullable<Schema>,
});
const values = watch();
@@ -58,8 +58,8 @@ export function StepEntityFields() {
return {
...prev,
entities: {
create: [getValues() as any]
}
create: [getValues() as any],
},
};
});
@@ -119,7 +119,7 @@ export function StepEntityFields() {
<ModalFooter
next={{
disabled: !isValid,
type: "submit"
type: "submit",
//onClick: handleNext
}}
prev={{ onClick: stepBack }}