mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
feat: save active tabs in dashboard permalink (#19983)
This commit is contained in:
@@ -50,10 +50,15 @@ export function parseErrorJson(responseObject: JsonObject): ClientErrorObject {
|
||||
}
|
||||
// Marshmallow field validation returns the error mssage in the format
|
||||
// of { message: { field1: [msg1, msg2], field2: [msg], } }
|
||||
if (error.message && typeof error.message === 'object' && !error.error) {
|
||||
error.error =
|
||||
Object.values(error.message as Record<string, string[]>)[0]?.[0] ||
|
||||
t('Invalid input');
|
||||
if (!error.error && error.message) {
|
||||
if (typeof error.message === 'object') {
|
||||
error.error =
|
||||
Object.values(error.message as Record<string, string[]>)[0]?.[0] ||
|
||||
t('Invalid input');
|
||||
}
|
||||
if (typeof error.message === 'string') {
|
||||
error.error = error.message;
|
||||
}
|
||||
}
|
||||
if (error.stack) {
|
||||
error = {
|
||||
|
||||
Reference in New Issue
Block a user