Merge branch 'release/1.8.0' into develop

This commit is contained in:
2024-02-06 15:08:30 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ export type LocationEditFormProps = {
export const LocationEditForm:FC<LocationEditFormProps> = ({ location, yearMonth }) =>
{
const initialState = { message: null, errors: {} };
const handleAction = updateOrAddLocation.bind(null, location?._id, yearMonth);
const handleAction = updateOrAddLocation.bind(null, location?._id, location?.yearMonth ?? yearMonth);
const [ state, dispatch ] = useFormState(handleAction, initialState);
let { year, month } = location ? location.yearMonth : yearMonth;

View File

@@ -9,7 +9,7 @@ networks:
services:
web-app:
image: utility-bills-tracker:1.7.0
image: utility-bills-tracker:1.8.0
networks:
- traefik-network
- mongo-network