diff --git a/src/components/Tables/Base/ActionButton/index.jsx b/src/components/Tables/Base/ActionButton/index.jsx index 4f0672d6..58f3ab7b 100644 --- a/src/components/Tables/Base/ActionButton/index.jsx +++ b/src/components/Tables/Base/ActionButton/index.jsx @@ -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;