diff --git a/src/components/Inputs/RulePath/index.jsx b/src/components/Inputs/RulePath/index.jsx index 942ced69135..3a00369799a 100644 --- a/src/components/Inputs/RulePath/index.jsx +++ b/src/components/Inputs/RulePath/index.jsx @@ -70,7 +70,8 @@ export default class RulePath extends React.Component { const { onChange } = this.props const servicePort = get(value, 'backend.service.port.number') - if (isNumber(servicePort)) { + + if (servicePort && isNumber(parseInt(servicePort, 10))) { set(value, 'backend.service.port.number', Number(servicePort)) }