Fix add new portal

This commit is contained in:
2021-05-04 01:44:59 -05:00
parent c6fb1d08e7
commit 9f7f2df3de

View File

@@ -24,7 +24,7 @@ class HostList extends Component {
componentWillUnmount() {}
handleAddHost = () => {
this.props.AddHost(this.state.items, (changed, host_data) => {
this.props.AddHost(this.state.items, (changed, { host_data }) => {
if (changed) {
const items = [...this.state.items, host_data];
this.updateItems(items);