UA-eMath / eMath

new eMath system
2 stars 0 forks source link

Moving para throws error #197

Closed bohungi closed 2 years ago

bohungi commented 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.

xqiu1 commented 2 years ago

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.