From ea3409b4428a87dec709a3ba3bfde8ac9090702a Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Mon, 20 Nov 2023 18:44:31 +0100 Subject: [PATCH] type corrections --- lib/manager/components/deployment/CustomConfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/manager/components/deployment/CustomConfig.js b/lib/manager/components/deployment/CustomConfig.js index bb5f610d4..a7c9903c0 100644 --- a/lib/manager/components/deployment/CustomConfig.js +++ b/lib/manager/components/deployment/CustomConfig.js @@ -44,7 +44,7 @@ export default class CustomConfig extends Component<{ }, {[string]: any}> { state = {} - getName = (option: string) => { + getName = (option?: string) => { let {name} = this.props if (option === CONFIG_OPTIONS.url) { name += 'Url' @@ -80,7 +80,7 @@ export default class CustomConfig extends Component<{ this.setState({[name]: evt.target.value}) } - _onSaveConfig = (option) => { + _onSaveConfig = (option?: string) => { const {deployment, updateDeployment} = this.props const name = this.getName(option)