Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

bring back lodashIndexOf instead of indexOf

VictorSd1260fb3ba96
diff --git a/web/js/components/layer/settings/palette.js b/web/js/components/layer/settings/palette.js
index cca3c9225..d1f8ac8fc 100644
--- a/web/js/components/layer/settings/palette.js
+++ b/web/js/components/layer/settings/palette.js
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import PropTypes from 'prop-types';
+import lodashIndexOf from 'lodash/indexOf';
import { drawPaletteOnCanvas } from '../../../modules/palettes/util';
import util from '../../../util/util';
import Scrollbar from '../../util/scrollbar';
@@ -166,7 +167,7 @@ function PaletteSelect (props) {
{
// eslint-disable-next-line array-callback-return
paletteOrder.map((id) => {
- if (recommended.indexOf(id) < 0) {
+ if (lodashIndexOf(recommended, id) < 0) {
const item = customLegend(id);
if (item) {
return item;