We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89dab8f + b71c543 commit f5be223Copy full SHA for f5be223
app/javascript/components/widgets/widgets/forest-change/tree-loss-tsc/selectors.js
@@ -158,10 +158,12 @@ export const parseConfig = createSelector(
158
.reverse()
159
);
160
const insertIndex = findIndex(tooltip, { key: 'class_5' });
161
- tooltip.splice(insertIndex, 0, {
162
- key: 'break',
163
- label: 'Drivers of permanent deforestation:'
164
- });
+ if (insertIndex > -1) {
+ tooltip.splice(insertIndex, 0, {
+ key: 'break',
+ label: 'Drivers of permanent deforestation:'
165
+ });
166
+ }
167
return {
168
height: 250,
169
xKey: 'year',
0 commit comments