@stoker-platform/web-app 0.5.182 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.183
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: improve compact list metric transitions
8
+
3
9
  ## 0.5.182
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.182",
3
+ "version": "0.5.183",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
package/src/List.tsx CHANGED
@@ -1513,6 +1513,8 @@ 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}`}