minor fixes

This commit is contained in:
2026-01-29 08:56:11 -06:00
parent 876f1f65a2
commit b7e74242b8
8 changed files with 30 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ const LogForm = () => {
`api/logs/${logbookContext.state.selectedLogId}`
);
const log = response.data;
console.log(log)
reset(log);
} catch (error) {
const axiosError = error as AxiosError;
@@ -485,7 +485,9 @@ const LogForm = () => {
type='number'
className='input w-full'
disabled={state.isDisabled}
onChange={onChange}
min={0}
onChange={(event) => onChange(Number(event.target.value))}
step={0.1}
value={value}
/>
)}
@@ -505,6 +507,7 @@ const LogForm = () => {
className='textarea w-full'
disabled={state.isDisabled}
onChange={onChange}
value={value}
></textarea>
)}
/>