Skip to content

Commit

Permalink
fix color layer / segmentation layer switchero bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBuessemeyer committed Jul 25, 2024
1 parent 4a75782 commit a748164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/javascripts/types/api_flow_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export type APIDatasetCompact = APIDatasetCompactWithoutStatusAndLayerNames & {
};

export function convertDatasetToCompact(dataset: APIDataset): APIDatasetCompact {
const [colorLayerNames, segmentationLayerNames] = _.partition(

This comment has been minimized.

Copy link
@philippotto

philippotto Jul 26, 2024

Member

great find 🙏

const [segmentationLayerNames, colorLayerNames] = _.partition(
dataset.dataSource.dataLayers,
(layer) => layer.category === "segmentation",
).map((layers) => layers.map((layer) => layer.name).sort());
Expand Down

0 comments on commit a748164

Please sign in to comment.