diff --git a/src/tools/CreateCourse.tsx b/src/tools/CreateCourse.tsx index fdd1a01..d18d67e 100644 --- a/src/tools/CreateCourse.tsx +++ b/src/tools/CreateCourse.tsx @@ -146,6 +146,15 @@ export default function CreateCourse(): JSX.Element { addControl({ ...control }, selectedCourseId); } else { const numberControls = controlsSource.getFeatures().length; + + const hasFinishControl = controlsSource.getFeatures().some( + (feature) => feature.get("kind") === "finish" + ); + + if (hasFinishControl) { + return; + } + const kind = activeModeRef.current === "Finish" ? "finish"