Skip to content
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

Open
Shahir-47 opened this issue May 3, 2023 · 0 comments · May be fixed by #237
Open

Seeding Report: Duplicates appearing in Crop Dropdown when editing a record #235

Shahir-47 opened this issue May 3, 2023 · 0 comments · May be fixed by #237
Assignees
Labels
bug Something isn't working

Comments

@Shahir-47
Copy link

The Crop drop-down in the Seeding Report form contains duplicates. Each Crop should appear in this list only one time.

image
image

Steps to Reproduce

  1. Clear browsing data
  2. Visit the Seeding Report form
  3. Click the edit button on any record
  4. Observe that items are repeated twice

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.

image

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}}

@braughtg braughtg added bug Something isn't working Good Second Issue An issue that is a little deeper than a good first issue. labels May 4, 2023
@Shahir-47 Shahir-47 linked a pull request May 5, 2023 that will close this issue
@braughtg braughtg removed the Good Second Issue An issue that is a little deeper than a good first issue. label Aug 17, 2023
@DickinsonCollege DickinsonCollege deleted a comment from Shahir-47 Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants