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.