From 83fe58aa6cbdd87534863d4521dcbb73949629db Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Mon, 26 Feb 2024 15:58:22 +0800 Subject: [PATCH] fix(console): center align card title when subtitle is not available (#5432) --- packages/console/src/ds-components/DangerousRaw/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/ds-components/DangerousRaw/index.tsx b/packages/console/src/ds-components/DangerousRaw/index.tsx index 1a11732cf..30dd93be2 100644 --- a/packages/console/src/ds-components/DangerousRaw/index.tsx +++ b/packages/console/src/ds-components/DangerousRaw/index.tsx @@ -11,7 +11,7 @@ type Props = { * is intended to be translated. */ function DangerousRaw({ children }: Props) { - return {children}; + return children ? {children} : null; } export default DangerousRaw;