Skip to content
Snippets Groups Projects
Commit 4310954b authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Adding default quantification schema

parent 5cbbd99a
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,13 @@
let pestList = JSON.parse(localStorage.getItem(CommonUtil.CONST_STORAGE_PEST_LIST));
let pest = pestList.find(({organismId}) => organismId === this.organism_id);
if(pest == null)
{
// TODO: i18n this!!
pest = {
observationDataSchema: "{\"$schema\":\"http://json-schema.org/draft-04/schema#\",\"type\":\"object\",\"title\":\" \",\"properties\":{\"number\":{\"title\":\"Antall\",\"type\":\"string\"},\"unit\":{\"title\":\"Måleenhet\",\"type\":\"string\"}}}"
}
}
this.observationDataSchema = JSON.parse(pest.observationDataSchema);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment