Fix add new portal
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user