We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce2759d + ceb4929 commit 9865d73Copy full SHA for 9865d73
src/Pages/ResourceBrowser/NodeDrainOptions.tsx
@@ -14,7 +14,7 @@
14
* limitations under the License.
15
*/
16
17
-import { ChangeEvent, FocusEvent } from 'react'
+import { ChangeEvent, FocusEvent, useEffect } from 'react'
18
19
import { ReactComponent as ICTimer } from '@Icons/ic-timer.svg'
20
import { Checkbox } from '@Common/Checkbox'
@@ -37,6 +37,10 @@ const NodeDrainOptions = ({
37
ignoreAllDaemonSets: false,
38
}
39
40
+ useEffect(() => {
41
+ setNodeDrainOptions(nodeDrainOptions)
42
+ }, [])
43
+
44
const handleGracePeriodOnChange = (e: ChangeEvent<HTMLInputElement>) => {
45
setNodeDrainOptions({
46
...nodeDrainOptions,
0 commit comments