Include card error message in card error (#26184)

Pass card error message to createErrorCardElement
This commit is contained in:
dcapslock 2025-07-17 01:28:42 +10:00 committed by GitHub
parent b207528ecf
commit 818914b837
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ const _createErrorElement = <T extends keyof CreateElementConfigTypes>(
createErrorHeadingBadgeConfig(error, config) createErrorHeadingBadgeConfig(error, config)
); );
} }
return createErrorCardElement({ type: "error" }); return createErrorCardElement({ type: "error", message: error });
}; };
const _customCreate = <T extends keyof CreateElementConfigTypes>( const _customCreate = <T extends keyof CreateElementConfigTypes>(