Skip to content

Commit

Permalink
Merge pull request #13 from likes-gay/dev
Browse files Browse the repository at this point in the history
Sync Dev to main
  • Loading branch information
Zoobdude authored Jan 29, 2024
2 parents 57585b8 + 96781e1 commit 22b4db5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The volume sets where the database file should be stored, so it persits. This de
The detach argument runs the container in the background.
The name argument sets the name
```shell
docker run --publish 8000:8000 --volume $(pwd)/dict-data:/backend/dict-data --detach --name Dict likesgay/dict
docker run --publish 8000:8000 --volume $(pwd)/dict-data:/backend/dict-data --detach --restart always --name Dict likesgay/dict
```
The Docker container can automatically be updated to the latest image using [Watchtower](https://containrrr.dev/watchtower/).

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/AddNewWord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function AddNewWord(props: AddNewWordProps) {
setNewWordDomId("");
setErrorMsg("");

const formData = new FormData(e.currentTarget);
const formData = new FormData(e.target as HTMLFormElement);

const creationDate = formData.get("date") ?
new Date(formData.get("date") as string).getTime() :
Expand All @@ -42,7 +42,7 @@ export default function AddNewWord(props: AddNewWordProps) {
return;
}

e.target.reset();
(e.target as HTMLFormElement).reset();
props.onSubmitFinished?.();
setNewWordDomId(createWordDomId(newWord));
}
Expand Down

0 comments on commit 22b4db5

Please sign in to comment.