Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Initial Race Data Displayed #40

Open
opethef10 opened this issue Jun 9, 2023 · 0 comments
Open

Incorrect Initial Race Data Displayed #40

opethef10 opened this issue Jun 9, 2023 · 0 comments

Comments

@opethef10
Copy link

Summary:
When the website loads for the first time, the dropdown selectors correctly show the current year and race. However, the initial race data displayed in the table is from 2019 instead of the expected current year (2023). This issue arises due to a static definition of the data() function, resulting in conflicting data between the dropdowns and the table.

Steps to Reproduce:

  1. Load the website for the first time.
  2. Observe that the dropdown selectors show the current year (2023) correctly.
  3. Notice that the initial race data displayed in the table is from 2019.

Expected Behavior:
The initial race data displayed in the table should match the current year selected in the dropdown selectors (2023).

Additional Information:
Upon inspecting the code, it was found that there are two different data() functions defined in separate files. One of them has a static definition with selectedYear set to 2019. This causes a discrepancy between the dropdowns (which indicate the correct year) and the table data.

Proposed Solution:
To resolve this issue, the static definition of selectedYear should be updated to dynamically reflect the current year when the website loads.

Please let me know if you need any further information or clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant