fix: Matching errorType on superset api error with SupersetError (#34261)

This commit is contained in:
JUST.in DO IT
2025-07-22 11:51:42 -07:00
committed by GitHub
parent f4f516c64c
commit 229d92590a
2 changed files with 11 additions and 11 deletions

View File

@@ -54,7 +54,8 @@ export function ErrorMessageWithStackTrace({
// Check if a custom error message component was registered for this message
if (error) {
const ErrorMessageComponent = getErrorMessageComponentRegistry().get(
error.error_type,
// @ts-ignore: plan to modify this part so that all errors in Superset 6.0 are standardized as Superset API error types
error.errorType ?? error.error_type,
);
if (ErrorMessageComponent) {
return (