Skip to content
Snippets Groups Projects
Commit 5f2a2d9b authored by YAHYAOUI Firas's avatar YAHYAOUI Firas
Browse files

edit: correct url to fetch filters

parent 631c2d22
No related branches found
No related tags found
1 merge request!23edit: correct url to fetch filters
Pipeline #20328 passed
......@@ -21,14 +21,14 @@ test-job:
build-client:
stage: build
image: public.ecr.aws/docker/library/node:lts
image: node:lts-alpine
script:
- npm install
- npm run build
test-client-job:
stage: test
image: public.ecr.aws/docker/library/node:lts
image: node:lts-alpine
script:
- npm install
- npm run test
......@@ -29,21 +29,21 @@ export const getEventById = async (eventId: string) => {
}
export const getThemes = async () => {
const result = await API.get<string[]>('/get_theme');
const result = await API.get<string[]>('/get_theme/');
return result.data;
}
export const getCities = async () => {
const result = await API.get<string[]>('/get_city');
const result = await API.get<string[]>('/get_city/');
return result.data;
}
export const getOrganizers = async () => {
const result = await API.get<string[]>('/get_organizer');
const result = await API.get<string[]>('/get_organizer/');
return result.data;
}
export const getHoods = async () => {
const result = await API.get<string[]>('/get_hood');
const result = await API.get<string[]>('/get_hood/');
return result.data;
}
\ No newline at end of file
......@@ -30,8 +30,6 @@ export default function EventsPage() {
return { label: filter.label, options: [] };
});
console.log(initialFilters);
const [selectedFilters, setSelectedFilters] =
useState<Filter[]>(initialFilters);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment