File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function App() {
38
38
const [ query , setQuery ] = useState ( "" ) ;
39
39
40
40
const { data, loading } = useQuery < CoursesResponse > ( GET_COURSES ) ;
41
- const courses = useMemo ( ( ) => data ?. courseList , [ data ] ) ;
41
+ const courses = useMemo ( ( ) => data ?. courses , [ data ] ) ;
42
42
43
43
const parsedSample = useMemo ( ( ) => {
44
44
if ( ! sample || ! courses ) return ;
Original file line number Diff line number Diff line change 1
1
import { gql } from "@apollo/client" ;
2
2
3
3
export const API_BASE = "/api" ;
4
- export const GRAPHQL_BASE = "https://stanfurdtime.com/api/graphql" ;
4
+ export const GRAPHQL_BASE = "https://staging. stanfurdtime.com/api/graphql" ;
5
5
6
6
export interface Match {
7
7
subject : string ;
@@ -79,12 +79,12 @@ export interface Course {
79
79
}
80
80
81
81
export interface CoursesResponse {
82
- courseList : Course [ ] ;
82
+ courses : Course [ ] ;
83
83
}
84
84
85
85
export const GET_COURSES = gql `
86
86
query GetCourses {
87
- courseList {
87
+ courses {
88
88
subject
89
89
number
90
90
title
You can’t perform that action at this time.
0 commit comments