mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[bugfix] fix dual alert messages where the second one is empty
This commit is contained in:
@@ -316,7 +316,10 @@ var px = (function () {
|
||||
token.find("img.loading").hide();
|
||||
var err = msg ? ('<div class="alert alert-danger">' + msg + '</div>') : "";
|
||||
if (xhr) {
|
||||
err += '<div class="alert alert-danger">' + this.getErrorMsg(xhr) + '</div>';
|
||||
var extendedMsg = this.getErrorMsg(xhr);
|
||||
if (extendedMsg) {
|
||||
err += '<div class="alert alert-danger">' + extendedMsg + '</div>';
|
||||
}
|
||||
}
|
||||
container.html(err);
|
||||
container.show();
|
||||
|
||||
Reference in New Issue
Block a user