diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionSelector.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionSelector.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionSelector.tsx b/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionSelector.tsx index 535803665c5..bf09cda52eb 100644 --- a/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionSelector.tsx +++ b/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionSelector.tsx @@ -54,7 +54,6 @@ export default function NewCodeDefinitionSelector(props: Props) { const [globalNcd, setGlobalNcd] = React.useState<NewCodeDefinition | null>(null); const [selectedNcdType, setSelectedNcdType] = React.useState<NewCodeDefinitionType | null>(null); const [days, setDays] = React.useState<string>(''); - const [isChanged, setIsChanged] = React.useState<boolean>(false); React.useEffect(() => { const numberOfDays = getNumberOfDaysDefaultValue(globalNcd); @@ -75,7 +74,6 @@ export default function NewCodeDefinitionSelector(props: Props) { (newNcdType: NewCodeDefinitionType) => { if (newNcdType && newNcdType !== selectedNcdType) { setSelectedNcdType(newNcdType); - setIsChanged(true); } }, [selectedNcdType], @@ -157,7 +155,6 @@ export default function NewCodeDefinitionSelector(props: Props) { disabled={Boolean( !selectedNcdType || selectedNcdType === NewCodeDefinitionType.Inherited, )} - isChanged={isChanged} isValid={isCompliant} onChangeDays={setDays} onSelect={handleNcdChanged} |