From df3de24b019d2c32140a406239e8a83733816e20 Mon Sep 17 00:00:00 2001 From: JohannaPeanut <76495099+JohannaPeanut@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:02:52 +0100 Subject: [PATCH] fix --- src/subsections/components/SubsectionTableAdmin.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/subsections/components/SubsectionTableAdmin.tsx b/src/subsections/components/SubsectionTableAdmin.tsx index 5cd0c2e19..ff1ed5814 100644 --- a/src/subsections/components/SubsectionTableAdmin.tsx +++ b/src/subsections/components/SubsectionTableAdmin.tsx @@ -21,8 +21,7 @@ type Props = { export const SubsectionTableAdmin: React.FC = ({ subsections, updatedIds }) => { const [deleteSubsectionMutation] = useMutation(deleteSubsection) - const router = useRouter() - const { projectSlug, subsectionSlug } = useSlugs() + const { projectSlug } = useSlugs() const handleSlugCopyClick = async (slug: string) => { await navigator.clipboard.writeText(slug) } @@ -34,7 +33,7 @@ export const SubsectionTableAdmin: React.FC = ({ subsections, updatedIds return (
- {updatedIds?.length && ( + {Boolean(updatedIds?.length) && (

Die Planungsabschnitte mit den Ids {JSON.stringify(updatedIds)} (in der Tabelle blau hinterlegt) wurden in Felt erkannt und ggf. aktualisiert.