Skip to content

Commit

Permalink
fix: the interface does not prompt information when deleting a cluste…
Browse files Browse the repository at this point in the history
…r with backup (#184)

Signed-off-by: liuying <liu.ying@99cloud.net>

Signed-off-by: liuying <liu.ying@99cloud.net>
  • Loading branch information
lysign authored Sep 29, 2022
1 parent 4697cad commit 67ec8b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Tables/Base/ActionButton/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ function onShowError(action, data, error, props) {
}
const { submitErrorMsg } = action;
const { data: responseData } = (error || {}).response || error || {};
const realError = responseData || error;
const realError =
responseData?.reason || responseData?.message || responseData || error;
const message = submitErrorMsg
? submitErrorMsg(data, realError)
: getDefaultMsg(action, data).submitErrorMsg;
Expand Down

0 comments on commit 67ec8b7

Please sign in to comment.