mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-05 04:18:11 +08:00
fix label selection on trunctated category lists (#1646)
This commit is contained in:
@@ -174,7 +174,7 @@ class Category extends React.PureComponent {
|
||||
actions.selectCategoricalAllMetadataAction(
|
||||
"categorical metadata filter none of these",
|
||||
metadataField,
|
||||
categorySummary.categoryValues,
|
||||
categorySummary.allCategoryValues,
|
||||
false
|
||||
)
|
||||
);
|
||||
@@ -186,7 +186,7 @@ class Category extends React.PureComponent {
|
||||
actions.selectCategoricalAllMetadataAction(
|
||||
"categorical metadata filter all of these",
|
||||
metadataField,
|
||||
categorySummary.categoryValues,
|
||||
categorySummary.allCategoryValues,
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
@@ -168,13 +168,12 @@ class CategoryValue extends React.Component {
|
||||
categoryIndex,
|
||||
categorySummary,
|
||||
} = this.props;
|
||||
const labels = categorySummary.categoryValues;
|
||||
const label = labels[categoryIndex];
|
||||
const label = categorySummary.categoryValues[categoryIndex];
|
||||
dispatch(
|
||||
actions.selectCategoricalMetadataAction(
|
||||
"categorical metadata filter deselect",
|
||||
metadataField,
|
||||
labels,
|
||||
categorySummary.allCategoryValues,
|
||||
label,
|
||||
false
|
||||
)
|
||||
@@ -238,13 +237,12 @@ class CategoryValue extends React.Component {
|
||||
categoryIndex,
|
||||
categorySummary,
|
||||
} = this.props;
|
||||
const labels = categorySummary.categoryValues;
|
||||
const label = labels[categoryIndex];
|
||||
const label = categorySummary.categoryValues[categoryIndex];
|
||||
dispatch(
|
||||
actions.selectCategoricalMetadataAction(
|
||||
"categorical metadata filter select",
|
||||
metadataField,
|
||||
labels,
|
||||
categorySummary.allCategoryValues,
|
||||
label,
|
||||
true
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user