From af50b681edd85cba349e40c427389f68c3b93beb Mon Sep 17 00:00:00 2001 From: mathieuRA Date: Mon, 15 May 2023 10:30:33 +0200 Subject: [PATCH] thierry feedback --- packages/xo-web/src/xo-app/proxies/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/xo-web/src/xo-app/proxies/index.js b/packages/xo-web/src/xo-app/proxies/index.js index 215a45746fc..2e69b118031 100644 --- a/packages/xo-web/src/xo-app/proxies/index.js +++ b/packages/xo-web/src/xo-app/proxies/index.js @@ -37,11 +37,11 @@ import { updateApplianceSettings } from './update-appliance-settings' import Tooltip from '../../common/tooltip' import { getXoaPlan, SOURCES } from '../../common/xoa-plans' -const _editProxy = (value, { name, proxy }) => editProxyAppliance(proxy, { [name]: value }) - -const _editProxyAddress = (value, props) => { - value = value.trim() - return _editProxy(value === '' ? null : value, props) +const _editProxy = (value, { name, proxy }) => { + if (typeof value === 'string') { + value = value.trim() + } + return editProxyAppliance(proxy, { [name]: value === '' ? null : value }) } const HEADER = ( @@ -150,7 +150,7 @@ const COLUMNS = [ }, { itemRenderer: proxy => ( - + ), name: _('address'), },