Skip to content

Commit e5d20dd

Browse files
Copilothotlong
andcommitted
Simplify redundant ternary in DashboardGridLayout className
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 7fa4f50 commit e5d20dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-dashboard/src/DashboardGridLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export const DashboardGridLayout: React.FC<DashboardGridLayoutProps> = ({
195195
</CardHeader>
196196
)}
197197
<CardContent className="p-0 h-full">
198-
<div className={cn("h-full w-full overflow-auto", !widget.title ? "p-4" : "p-4")}>
198+
<div className={cn("h-full w-full overflow-auto p-4")}>
199199
<SchemaRenderer schema={componentSchema} />
200200
</div>
201201
</CardContent>

0 commit comments

Comments
 (0)