@rfkit/charts 1.0.96 → 1.0.97
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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -13502,7 +13502,7 @@ function useSpectrumAnalyzer(props) {
|
|
|
13502
13502
|
data: getExtraData(occupancyData.current),
|
|
13503
13503
|
totalOccupancy: totalOccupancyData.current
|
|
13504
13504
|
});
|
|
13505
|
-
if (templateData.current
|
|
13505
|
+
if (templateData.current?.length > 0) updateSpectrum({
|
|
13506
13506
|
template: getExtraData(templateData.current)
|
|
13507
13507
|
});
|
|
13508
13508
|
}
|
|
@@ -13546,7 +13546,7 @@ function useSpectrumAnalyzer(props) {
|
|
|
13546
13546
|
if (e.extraData) updateExtraData(e.extraData);
|
|
13547
13547
|
if (e.data) {
|
|
13548
13548
|
analyzer.current.process(e);
|
|
13549
|
-
if (templateData.current
|
|
13549
|
+
if (templateData.current?.length > 0) processExceedingData(e.data, templateData.current, e.timestamp);
|
|
13550
13550
|
}
|
|
13551
13551
|
if (e.maxData) analyzer.current.setMaxData(e.maxData);
|
|
13552
13552
|
if (e.template) updateTemplateData(e.template);
|