Skip to content

Commit

Permalink
Merge pull request #22 from dddwa/fix/grid-values
Browse files Browse the repository at this point in the history
Fix schedule return values
  • Loading branch information
JakeGinnivan authored Nov 8, 2024
2 parents e910d4e + 12c2e3e commit a046c99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions website/app/routes/app-agenda-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export async function loader({ context }: LoaderFunctionArgs) {
: // TODO Deal with data type
[]

const schedule = schedules[0]

return json(schedule, {
return json(schedules, {
headers: {
'Cache-Control': CACHE_CONTROL.conf,
'Access-Control-Allow-Origin': '*',
Expand Down
6 changes: 6 additions & 0 deletions website/remix-routes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ declare module "remix-routes" {
query: ExportedQuery<import('app/routes/app-agenda-speakers').SearchParams>,
};

"/app-announcements": {
params: never,
query: ExportedQuery<import('app/routes/app-announcements').SearchParams>,
};

"/app-config": {
params: never,
query: ExportedQuery<import('app/routes/app-config').SearchParams>,
Expand Down Expand Up @@ -104,6 +109,7 @@ declare module "remix-routes" {
| 'routes/app-agenda-grid'
| 'routes/app-agenda-sessions'
| 'routes/app-agenda-speakers'
| 'routes/app-announcements'
| 'routes/app-config'
| 'routes/app-content.$'
| 'routes/blog.rss[.xml]';
Expand Down

0 comments on commit a046c99

Please sign in to comment.