1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-04 01:18:20 +02:00

fix: fix linting for copyfeature (#5138)

This commit is contained in:
Jaanus Sellin 2023-10-24 13:21:01 +03:00 committed by GitHub
parent b47dbd37ff
commit 604c19c27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,10 +68,7 @@ export const CopyFeatureToggle = () => {
const [apiError, setApiError] = useState(''); const [apiError, setApiError] = useState('');
const [nameError, setNameError] = useState<string | undefined>(); const [nameError, setNameError] = useState<string | undefined>();
const [newToggleName, setNewToggleName] = useState<string>(); const [newToggleName, setNewToggleName] = useState<string>();
const { const { cloneFeatureToggle, validateFeatureToggleName } = useFeatureApi();
cloneFeatureToggle,
validateFeatureToggleName,
} = useFeatureApi();
const featureId = useRequiredPathParam('featureId'); const featureId = useRequiredPathParam('featureId');
const projectId = useRequiredPathParam('projectId'); const projectId = useRequiredPathParam('projectId');
const { feature } = useFeature(projectId, featureId); const { feature } = useFeature(projectId, featureId);