mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
InstanceAdd sends null for port_listener
This commit is contained in:
parent
449b95d1eb
commit
9c06370e33
@ -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);
|
||||
|
||||
@ -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) => (
|
||||
|
||||
@ -153,7 +153,7 @@ function InstancePeerList({ setBreadcrumb }) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if(receptor.is_internal) {
|
||||
if (receptor.is_internal) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user