This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
Seeding Report: Duplicates appearing in Crop Dropdown when editing a record #235
Labels
bug
Something isn't working
The Crop drop-down in the Seeding Report form contains duplicates. Each Crop should appear in this list only one time.
Steps to Reproduce
You can use Vue to clearly see that the computed method cropNameArray, which returns the list of crop names to the Crop drop-down menu, has a length of 222 items. There are only 111 crop names.
The cropNameArray is fed to the second column of the table as observed by the line of code below, which can be found at https://github.com/DickinsonCollege/FarmData2/blob/main/farmdata2/farmdata2_modules/fd2_barn_kit/seedingReport/seedingReport.html
{"header": 'Crop', "visible": true, "inputType" : {'type': 'dropdown', 'value': this.cropNameArray}}
The text was updated successfully, but these errors were encountered: