From 63147cee28f6897484f2b532ad9846bdbaa0ef35 Mon Sep 17 00:00:00 2001 From: Karan Nayak Date: Sat, 21 Oct 2023 12:49:32 +1300 Subject: [PATCH] Updated initData to enforce all fields being initialised to blank --- assets/data/initData.js | 47 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/assets/data/initData.js b/assets/data/initData.js index 45f4ffb..296cbf6 100644 --- a/assets/data/initData.js +++ b/assets/data/initData.js @@ -1,6 +1,45 @@ export default { - id: 0, - stipe_features: {}, - gills: {}, - cap_features: {} + "id": 0, + "tags": [], + "common_names": [], + "latin_names": [], + "maori_names": [], + "genus": "", + "description": "", + "lookalikes": [], + "lookalikes_description": "", + "links": [], + "nz_books": [], + "edibility": "", + "ecology": "", + "environment": "", + "time_of_year": [], + "native_or_introduced": "", + "photos": [], + "cap_features": { + "description": "", + "colour": [], + "diameter_min": null, + "diameter_max": null, + "thickness_min": null, + "thickness_max": null, + "texture": "", + "shape": [] + }, + "gills": { + "description": "", + "colour": [], + "attachment": "", + "spore_colour": "" + }, + "stipe_features": { + "description": "", + "diameter_min": null, + "diameter_max": null, + "colour": [], + "length_min": null, + "length_max": null, + "bruising_colour": "na", + "type": "" + } } \ No newline at end of file