Skip to content

Commit

Permalink
Merge pull request #36 from pennlabs/aag/cleanup
Browse files Browse the repository at this point in the history
partially fix search
  • Loading branch information
AaDalal authored Feb 20, 2024
2 parents 43864dd + 8481042 commit 662320e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/degree-plan/components/Dock/DockedCourse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React from "react";
import { BaseCourseContainer, RemoveCourseButton } from '../FourYearPlan/CoursePlanned';
import { GrayIcon } from '../bulma_derived_components';
import { GrayIcon } from '@/components/common/bulma_derived_components';
import { useDrag } from 'react-dnd';
import styled from '@emotion/styled';
import { ItemTypes } from '../dnd/constants';
Expand Down
2 changes: 1 addition & 1 deletion frontend/degree-plan/components/Search/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const GeneralSearchResult = ({setClosed, reqId, reqQuery, queryString, setQueryS

React.useEffect(() => {
setIsLoadingCourses(true);
fetch(`api/base/2023A/search/courses/?search=${queryString}`)
fetch(`/api/base/current/courses/search?search=${queryString}`)
.then(r => r.json())
.then((courses) => {
setCourses([...courses]);
Expand Down
4 changes: 4 additions & 0 deletions frontend/degree-plan/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const nextConfig = {
source: '/api/options',
destination: 'http://127.0.0.1:8000/api/options/'
},
{
source: '/api/base/current/courses/search',
destination: 'http://127.0.0.1:8000/api/base/current/courses/search/'
},
{
source: '/api/:apipath*',
destination: 'http://127.0.0.1:8000/api/:apipath*'
Expand Down

0 comments on commit 662320e

Please sign in to comment.