diff --git a/src/frontend/src/samples/components/SampleForm.jsx b/src/frontend/src/samples/components/SampleForm.jsx index 0619645..a64ef52 100644 --- a/src/frontend/src/samples/components/SampleForm.jsx +++ b/src/frontend/src/samples/components/SampleForm.jsx @@ -168,7 +168,7 @@ export default function SampleForm() { {({ state, handleChange, handleBlur }) => ( ( {({ state, handleChange, handleBlur }) => ( - + { // return (await client.get(`/api/markers/?order=${config.order}&name__icontains=${input}`)).data; // }; -const locationOptions = species => async (input) => { +const locationOptions = (species) => async (input) => { let base = `/api/locations/?order=${config.order}&species=${species?.id}`; if (input) { base += `&name__icontains=${input}`; @@ -73,7 +73,7 @@ const COLUMNS = [ }) : null, columnHelper.accessor("name", { - header: "Name", + header: "Sample Name", cell: SimpleCellInput, }), columnHelper.accessor("species", { @@ -99,14 +99,14 @@ const COLUMNS = [ cell: (props) => ( ), }), columnHelper.accessor("type", { - header: "Type", + header: "Sample Type", cell: (props) => ( - + ) : ( @@ -148,9 +151,9 @@ const COLUMNS = [ function handleError(e) { if (e instanceof AxiosError) { - e.response.data.errors.forEach(err => { - toast.error(err.detail) - }) + e.response.data.errors.forEach((err) => { + toast.error(err.detail); + }); } else { toast.error("There was an error"); } diff --git a/src/genlab_bestilling/models.py b/src/genlab_bestilling/models.py index f204e2e..8bb825f 100644 --- a/src/genlab_bestilling/models.py +++ b/src/genlab_bestilling/models.py @@ -262,7 +262,7 @@ def has_error(self): ] ): raise ValidationError( - "GUID, Name, Sample Type, Species and Year are required" + "GUID, Sample Name, Sample Type, Species and Year are required" ) if (