Skip to content

Commit

Permalink
remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannaPeanut committed Oct 31, 2023
1 parent 4c7a4cf commit 151a9af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pages/admin/[projectSlug]/subsections/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import getProject from "src/projects/queries/getProject"
import { SubsectionTableAdmin } from "src/subsections/components/SubsectionTableAdmin"
import updateSubsectionsWithFeltData from "src/subsections/mutations/updateSubsectionsWithFeltData"
import getSubsections from "src/subsections/queries/getSubsections"
import getAdminStatus from "src/users/queries/getAdminStatus"

export const AdminSubsectionsWithQuery = () => {
useQuery(getAdminStatus, {}) // See https://github.com/FixMyBerlin/private-issues/issues/936
const projectSlug = useParam("projectSlug", "string")
const [project] = useQuery(getProject, { slug: projectSlug })
const [{ subsections }, { refetch }] = useQuery(getSubsections, { projectSlug: projectSlug! })
Expand Down

0 comments on commit 151a9af

Please sign in to comment.