️ This Gitlab will be shut down at 2021-12-31 23:59:59.
Students and staff can migrate to gitlab.utwente.nl.
SNT members can migrate to gitlab.snt.utwente.nl.
Contact bestuur@snt.utwente.nl for more information.

Migrate your projects today!
Export your project using the webinterface or use a script.

Commit e2c52603 authored by TJHeeringa's avatar TJHeeringa

Minor fix v2

parent 080cca4f
......@@ -6,11 +6,11 @@ import {BackButton} from "../../Components/BackButton";
import AssociationInfo from "../../Components/Info/AssociationInfo";
import Block from "../../Components/PageLayout/Content/Block";
import PageContent from "../../Components/PageLayout/Content/Content";
import {useGetAssocationBySlugQuery} from "../../Store/services/associations";
import {useGetAssociationBySlugQuery} from "../../Store/services/associations";
const AssociationDetail = ({ slug }) => {
const { data: association } = useGetAssocationBySlugQuery(slug);
const { data: association } = useGetAssociationBySlugQuery(slug);
return (
<PageContent title={association ? association.name : ""}>
......
......@@ -6,14 +6,13 @@ const associationsApi = emptySplitApi
endpoints: (build) => ({
getAssociationBySlug: build.query({
query: (associationSlug) => ({ url: `/associations/${associationSlug}` }),
providesTags: (result, error, associationSlug) => [{ type: "Association", id: associationSlug }],
transformResponse: (response) => response.results
providesTags: (result, error, associationSlug) => [{ type: "Association", id: associationSlug }]
}),
}),
overrideExisting: false
});
export const {
useGetAssocationBySlugQuery,
useGetAssociationBySlugQuery,
} = associationsApi;
export default associationsApi;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment