diff --git a/src/dashboard/src/utils/request.js b/src/dashboard/src/utils/request.js index 43f182858..90f7710a2 100644 --- a/src/dashboard/src/utils/request.js +++ b/src/dashboard/src/utils/request.js @@ -30,7 +30,7 @@ const errorHandler = error => { const errortext = ( <> {codeMessage[response.status] || response.statusText}
- {data.msg[0]} + {data && data.msg && Array.isArray(data.msg) && data.msg.length > 0 && data.msg[0]} ); const { status, url } = response;