Skip to content

Commit

Permalink
Do not filter available datasets by stacCol
Browse files Browse the repository at this point in the history
  • Loading branch information
slesaad committed Jul 13, 2023
1 parent 014b1aa commit c3daa70
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/scripts/components/analysis/define/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import React, {
useRef
} from 'react';
import styled from 'styled-components';
import { uniqBy } from 'lodash';
import { media, multiply, themeVal } from '@devseed-ui/theme-provider';
import { Toolbar, ToolbarIconButton, ToolbarLabel } from '@devseed-ui/toolbar';
import { Dropdown, DropMenu, DropTitle } from '@devseed-ui/dropdown';
Expand Down Expand Up @@ -99,12 +98,10 @@ export const Note = styled.div`
}
`;

export const allAvailableDatasetsLayers: DatasetLayer[] = uniqBy(
Object.values(datasets)
export const allAvailableDatasetsLayers: DatasetLayer[] = Object.values(datasets)
.map((dataset) => (dataset as VedaDatum<DatasetData>).data.layers)

Check warning on line 102 in app/scripts/components/analysis/define/index.tsx

View workflow job for this annotation

GitHub Actions / lint

Use a ! assertion to more succinctly remove null and undefined from the type
.flat(),
'stacCol'
).filter(d => d.type !== 'vector');
.flat()
.filter(d => d.type !== 'vector');

export default function Analysis() {

Expand Down

0 comments on commit c3daa70

Please sign in to comment.