Skip to content

Commit 9865d73

Browse files
authored
Merge pull request #743 from devtron-labs/fix/bulk-drain
fix: set default value for NodeDrainOptions
2 parents ce2759d + ceb4929 commit 9865d73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Pages/ResourceBrowser/NodeDrainOptions.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { ChangeEvent, FocusEvent } from 'react'
17+
import { ChangeEvent, FocusEvent, useEffect } from 'react'
1818

1919
import { ReactComponent as ICTimer } from '@Icons/ic-timer.svg'
2020
import { Checkbox } from '@Common/Checkbox'
@@ -37,6 +37,10 @@ const NodeDrainOptions = ({
3737
ignoreAllDaemonSets: false,
3838
}
3939

40+
useEffect(() => {
41+
setNodeDrainOptions(nodeDrainOptions)
42+
}, [])
43+
4044
const handleGracePeriodOnChange = (e: ChangeEvent<HTMLInputElement>) => {
4145
setNodeDrainOptions({
4246
...nodeDrainOptions,

0 commit comments

Comments
 (0)