fix(api-server): return usable flash type to client (#50082)

This commit is contained in:
Shaun Hamilton
2023-04-17 18:48:18 +01:00
committed by GitHub
parent 16f0c4b7cc
commit 8300ccb7f0

View File

@@ -55,7 +55,7 @@ export default function prodErrorHandler() {
if (type === 'json') {
return res.json({
type: handled.type || 'errors',
type: handled.type || 'danger',
message
});
} else {