From b47dbd37ffbf705ad4adfc03ebf8991bb85fb3d0 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Tue, 24 Oct 2023 12:49:52 +0300 Subject: [PATCH] fix: fix copy functionality always being disabled --- frontend/src/component/feature/CopyFeature/CopyFeature.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/feature/CopyFeature/CopyFeature.tsx b/frontend/src/component/feature/CopyFeature/CopyFeature.tsx index 4df8cd962369..2ea0601fbc16 100644 --- a/frontend/src/component/feature/CopyFeature/CopyFeature.tsx +++ b/frontend/src/component/feature/CopyFeature/CopyFeature.tsx @@ -68,7 +68,10 @@ export const CopyFeatureToggle = () => { const [apiError, setApiError] = useState(''); const [nameError, setNameError] = useState(); const [newToggleName, setNewToggleName] = useState(); - const { cloneFeatureToggle, validateFeatureToggleName } = useFeatureApi(); + const { + cloneFeatureToggle, + validateFeatureToggleName, + } = useFeatureApi(); const featureId = useRequiredPathParam('featureId'); const projectId = useRequiredPathParam('projectId'); const { feature } = useFeature(projectId, featureId); @@ -134,7 +137,7 @@ export const CopyFeatureToggle = () => { show={{apiError}} /> Copy functionality is disabled for this project because