@stoker-platform/web-app 0.5.181 → 0.5.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/List.tsx +4 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/List.tsx
CHANGED
|
@@ -1513,13 +1513,15 @@ export function List({
|
|
|
1513
1513
|
) {
|
|
1514
1514
|
const metricTitle = metric.title || `Total ${collectionTitle}`
|
|
1515
1515
|
if (metric.compact) {
|
|
1516
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
1517
|
+
if (!metricsValues[index]) return null
|
|
1516
1518
|
return (
|
|
1517
1519
|
<div
|
|
1518
1520
|
key={`metric-${index}`}
|
|
1519
1521
|
className={"grid gap-3 place-content-center"}
|
|
1520
1522
|
>
|
|
1521
|
-
<Card className="p-4 flex flex-col min-w-
|
|
1522
|
-
<div className="font-semibold
|
|
1523
|
+
<Card className="p-4 flex flex-col min-w-fit place-content-center items-center bg-blue-500 dark:bg-blue-500/50 text-primary-foreground dark:text-primary">
|
|
1524
|
+
<div className="font-semibold text-center">
|
|
1523
1525
|
{/* eslint-disable-next-line security/detect-object-injection */}
|
|
1524
1526
|
{metricTitle}: {metricsValues[index] as string}
|
|
1525
1527
|
</div>
|