@record-evolution/widget-mapbox 1.4.19 → 1.4.20
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/package.json
CHANGED
package/src/widget-mapbox.ts
CHANGED
|
@@ -112,7 +112,9 @@ export class WidgetMapbox extends LitElement {
|
|
|
112
112
|
|
|
113
113
|
// Filter for latest Values
|
|
114
114
|
this.dataSets.forEach((ds) => {
|
|
115
|
-
if (ds?.latestValues && ds?.latestValues > 0)
|
|
115
|
+
if (ds?.latestValues && ds?.latestValues > 0) {
|
|
116
|
+
ds.data = ds?.data?.slice(0, ds.latestValues ?? 1) ?? []
|
|
117
|
+
}
|
|
116
118
|
})
|
|
117
119
|
|
|
118
120
|
// console.log('mapbox datasets', this.dataSets)
|