Skip to content

Commit

Permalink
filter names
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-gould committed Apr 25, 2023
1 parent bffe765 commit 6e43432
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ExplorePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,12 @@ function ExplorePanel(props) {
const embeddingOptions = getEmbeddingOptions(dataset.embeddings);
const selectedEmbeddings = getEmbeddingOptions(embeddings);
const layerOptions = getLayersOptions(dataset.layers);

function getDatasetFilterLabel(key) {
const index = findIndex(trajectoryOptions, (option) => option.id === key);
return index === -1 ? key : trajectoryOptions[index].text;
}

return (
<>
{'feature set view' === selectedPopupMenuItem && (
Expand Down Expand Up @@ -822,7 +828,7 @@ function ExplorePanel(props) {
size={'small'}
style={{marginRight: 2, verticalAlign: 'bottom'}}
key={key}
label={key}
label={getDatasetFilterLabel(key)}
/>
);
})}
Expand Down

0 comments on commit 6e43432

Please sign in to comment.