Skip to content

Commit e58f4ce

Browse files
authored
fix: remove unnecessary set state (#5663)
1 parent 7790d89 commit e58f4ce

File tree

1 file changed

+0
-6
lines changed
  • src/writeData/components/PluginAddToExistingConfiguration

1 file changed

+0
-6
lines changed

src/writeData/components/PluginAddToExistingConfiguration/Configure.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ const ConfigureComponent: FC<Props> = props => {
6262
telegraf => telegraf.id === telegrafConfigID
6363
)
6464

65-
if (!selectedTelegraf) {
66-
setIsValidConfiguration(false)
67-
} else {
68-
setIsValidConfiguration(true)
69-
}
70-
7165
const selectedName = selectedTelegraf
7266
? selectedTelegraf.name
7367
: 'Select a configuration'

0 commit comments

Comments
 (0)