@aguacerowx/javascript-sdk 0.0.13 → 0.0.14
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 +1 -1
- package/src/AguaceroCore.js +1 -4
package/package.json
CHANGED
package/src/AguaceroCore.js
CHANGED
|
@@ -106,16 +106,13 @@ export class AguaceroCore extends EventEmitter {
|
|
|
106
106
|
availableTimestamps = [...timestamps].reverse();
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
// --- NEW CODE: Filter out hour 0 for ptypeRefl + HRRR ---
|
|
110
109
|
let availableHours = this.state.isMRMS
|
|
111
110
|
? []
|
|
112
111
|
: (this.modelStatus?.[this.state.model]?.[this.state.date]?.[this.state.run] || []);
|
|
113
112
|
|
|
114
|
-
|
|
115
|
-
if (this.state.variable === 'ptypeRefl' && this.state.model === 'hrrr' && availableHours.length > 0) {
|
|
113
|
+
if (!this.state.isMRMS && this.state.variable === 'ptypeRefl' && this.state.model === 'hrrr' && availableHours.length > 0) {
|
|
116
114
|
availableHours = availableHours.filter(hour => hour !== 0);
|
|
117
115
|
}
|
|
118
|
-
// --- END NEW CODE ---
|
|
119
116
|
|
|
120
117
|
const eventPayload = {
|
|
121
118
|
...this.state,
|