2
When clicking the update button the modal pops twice, the first one shows the correct item.id but the second one is the last value on the list. any help is appreciated. tried adding {this.props.child} inside the modal tag but it doesn't work. any help would be appreciated. this.state = { ModalText: 'Content of the modal', visible: false, currentId : 0, confirmLoading: false, } } showModal = () => { this.setState({ visible: true, }); } handleOk = () => { this.setState({ ModalText: 'The modal will be closed after two seconds', confirmLoading: true, }); setTimeout(() => { this.setState({ visible: false, confirmLoading: false, }); }, 2000); } handleCancel = () => { console.lo...