Commit b0c348352e6310903adcd076493729de2287f090
1 parent
864d0212
Exists in
master
and in
94 other branches
Fix #8304
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
js/app/views/CatalogVisuHistogram.js
... | ... | @@ -60,8 +60,8 @@ Ext.define('amdaUI.CatalogVisuHistogram', { |
60 | 60 | maxValue = (maxValue == null) ? item.get(paramOpt.paramId) : Math.max(maxValue, item.get(paramOpt.paramId)); |
61 | 61 | }); |
62 | 62 | |
63 | - if (!minValue || !maxValue || (minValue == maxValue)) { | |
64 | - myDesktopApp.errorMsg('Not enought data or constant data'); | |
63 | + if ((minValue == null) || (maxValue == null) || (minValue == maxValue)) { | |
64 | + myDesktopApp.errorMsg('Not enough data or constant data'); | |
65 | 65 | return null; |
66 | 66 | } |
67 | 67 | ... | ... |