InstanceAdd sends null for port_listener

This commit is contained in:
David O Neill 2024-01-19 15:18:57 +00:00 committed by Seth Foster
parent 449b95d1eb
commit 9c06370e33
3 changed files with 7 additions and 6 deletions

View File

@ -9,6 +9,10 @@ function InstanceAdd() {
const [formError, setFormError] = useState();
const handleSubmit = async (values) => {
try {
if (values.listener_port === undefined) {
values.listener_port = null;
}
const {
data: { id },
} = await InstancesAPI.create(values);

View File

@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useState } from 'react';
import React, { useCallback, useEffect } from 'react';
import { t } from '@lingui/macro';
import { CardBody } from 'components/Card';
import PaginatedTable, {
@ -138,10 +138,7 @@ function InstanceEndPointList({ setBreadcrumb }) {
isAllExpanded={isAllExpanded}
onExpandAll={expandAll}
qsConfig={QS_CONFIG}
additionalControls={
[
]
}
additionalControls={[]}
/>
)}
renderRow={(endpoint, index) => (

View File

@ -153,7 +153,7 @@ function InstancePeerList({ setBreadcrumb }) {
continue;
}
if(receptor.is_internal) {
if (receptor.is_internal) {
continue;
}