Closed bohungi closed 2 years ago
An attempt to move a para, using the up/down arrows on the right throws this error:
× Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'status') (anonymous function) src/components/paraControl/index.js:109 106 | const request_body = { action: 1 }; 107 | updatePara(request_body, this.props.id).then((data) => { 108 | if (!data || data.status !== 200) {
109 | if (data.status === 400) { | ^ 110 | message.error(data.data); 111 | } 112 | console.error("Update Para error", request_body, data);
Strangely, after reloading eMath, the expected move has been performed.
I didn't encounter this issue, so I will close it for now. But if you meet the same problem again, feel free to reopen it.
An attempt to move a para, using the up/down arrows on the right throws this error:
× Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'status') (anonymous function) src/components/paraControl/index.js:109 106 | const request_body = { action: 1 }; 107 | updatePara(request_body, this.props.id).then((data) => { 108 | if (!data || data.status !== 200) {
Strangely, after reloading eMath, the expected move has been performed.