Skip to content

Commit

Permalink
chore: Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Oct 25, 2023
1 parent 14f7e5d commit 80270c9
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/components/AreaCoordinates/AreaCoordinates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ export const AreaCoordinates = ({ modelId }: { modelId: string }) => {
// const selectedArea: optionTypes[] = [{ id: 10, name: 'Proximal' }];
const areaCoordinats = {
area: '',
topX: '43',
topY: '4133',
bottomX: '89754',
bottomY: '53345',
topX: '',
topY: '',
bottomX: '',
bottomY: '',
};

const { control, register, handleSubmit, formState } = useForm({
Expand All @@ -88,15 +88,7 @@ export const AreaCoordinates = ({ modelId }: { modelId: string }) => {
const { errors } = formState;

const handleSelectChange = (changes: AutocompleteChanges<optionTypes>) => {
console.log(changes);
console.log(changes.selectedItems);
console.log(changes.selectedItems[0]);

field.onChange(changes);
console.log(field.onChange);
console.log(field.value);
console.log(typeof field.value);
console.log(field.value);
};

const handleSave = (formValues: FieldValues) => {
Expand Down

0 comments on commit 80270c9

Please sign in to comment.