Capture kapa error message regardless of number of colons
parent
cd850f5280
commit
a410a1dfa0
|
@ -451,7 +451,7 @@ class AlertTabs extends PureComponent<Props, State> {
|
|||
} catch ({
|
||||
data: {error},
|
||||
}) {
|
||||
const errorMsg = _.join(_.drop(_.split(error, ': '), 2), ': ')
|
||||
const errorMsg = error.split(': ').pop()
|
||||
this.props.notify(notifyAlertEndpointSaveFailed(section, errorMsg))
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue