diff --git a/app/controllers/api/v0/competitions_controller.rb b/app/controllers/api/v0/competitions_controller.rb index d37b345614..9bbba881f6 100644 --- a/app/controllers/api/v0/competitions_controller.rb +++ b/app/controllers/api/v0/competitions_controller.rb @@ -25,7 +25,7 @@ def competition_index competitions = competitions_scope.search(params[:q], params: params) - serial_methods = ["short_display_name", "city", "country_iso2", "event_ids", "date_range", "latitude_degrees", "longitude_degrees"] + serial_methods = ["short_display_name", "city", "country_iso2", "event_ids", "latitude_degrees", "longitude_degrees"] serial_includes = {} serial_includes["delegates"] = { only: ["id", "name"], methods: [], include: ["avatar"] } if admin_mode diff --git a/app/views/competitions/my_competitions.html.erb b/app/views/competitions/my_competitions.html.erb index 735e2876b6..d0adfcebd6 100644 --- a/app/views/competitions/my_competitions.html.erb +++ b/app/views/competitions/my_competitions.html.erb @@ -1,8 +1,8 @@ <% provide(:title, t('.title')) %> <% options = { - only: %w[id name website start_date end_date, registration_open], - methods: %w[url city country_iso2 registration_status results_posted? visible? confirmed? cancelled? report_posted? date_range short_display_name], + only: %w[id name website start_date end_date registration_open], + methods: %w[url city country_iso2 registration_status results_posted? visible? confirmed? cancelled? report_posted? short_display_name], include: %w[championships], } %> diff --git a/app/webpacker/components/CompetitionsOverview/ListViewSection.js b/app/webpacker/components/CompetitionsOverview/ListViewSection.js index 0d1999cbe0..2aaf6f47cb 100644 --- a/app/webpacker/components/CompetitionsOverview/ListViewSection.js +++ b/app/webpacker/components/CompetitionsOverview/ListViewSection.js @@ -21,6 +21,7 @@ import { } from '../../lib/utils/competition-table'; import { countries } from '../../lib/wca-data.js.erb'; import { adminCompetitionUrl, competitionUrl } from '../../lib/requests/routes.js.erb'; +import { dateRange } from '../../lib/utils/dates'; function ListViewSection({ competitions, @@ -154,7 +155,7 @@ export function CompetitionsTable({ />