Fix add new portal
This commit is contained in:
@@ -24,7 +24,7 @@ class HostList extends Component {
|
|||||||
componentWillUnmount() {}
|
componentWillUnmount() {}
|
||||||
|
|
||||||
handleAddHost = () => {
|
handleAddHost = () => {
|
||||||
this.props.AddHost(this.state.items, (changed, host_data) => {
|
this.props.AddHost(this.state.items, (changed, { host_data }) => {
|
||||||
if (changed) {
|
if (changed) {
|
||||||
const items = [...this.state.items, host_data];
|
const items = [...this.state.items, host_data];
|
||||||
this.updateItems(items);
|
this.updateItems(items);
|
||||||
|
|||||||
Reference in New Issue
Block a user