mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 05:38:11 +08:00
fix perf regression introduced by user anno changes (#1060)
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
|||||||
} from "@blueprintjs/core";
|
} from "@blueprintjs/core";
|
||||||
|
|
||||||
@connect()
|
@connect()
|
||||||
class Occupancy extends React.Component {
|
class Occupancy extends React.PureComponent {
|
||||||
_WIDTH = 100;
|
_WIDTH = 100;
|
||||||
|
|
||||||
_HEIGHT = 11;
|
_HEIGHT = 11;
|
||||||
|
|||||||
@@ -191,7 +191,8 @@ class CategoryValue extends React.Component {
|
|||||||
const worldChange = props.world !== nextProps.world;
|
const worldChange = props.world !== nextProps.world;
|
||||||
const colorAccessorChange = props.colorAccessor !== nextProps.colorAccessor;
|
const colorAccessorChange = props.colorAccessor !== nextProps.colorAccessor;
|
||||||
const annotationsChange = props.annotations !== nextProps.annotations;
|
const annotationsChange = props.annotations !== nextProps.annotations;
|
||||||
const crossfilterChange = props.crossfilter !== nextProps.crossfilter;
|
const crossfilterChange =
|
||||||
|
props.isUserAnno && props.crossfilter !== nextProps.crossfilter;
|
||||||
const editingLabel = state.editedLabelText !== nextState.editedLabelText;
|
const editingLabel = state.editedLabelText !== nextState.editedLabelText;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -554,9 +555,7 @@ class CategoryValue extends React.Component {
|
|||||||
data-testclass="handleDeleteValue"
|
data-testclass="handleDeleteValue"
|
||||||
data-testid={`handleDeleteValue-${metadataField}`}
|
data-testid={`handleDeleteValue-${metadataField}`}
|
||||||
onClick={this.handleDeleteValue}
|
onClick={this.handleDeleteValue}
|
||||||
text={`Delete this label, and reassign all cells to type '${
|
text={`Delete this label, and reassign all cells to type '${globals.unassignedCategoryLabel}'`}
|
||||||
globals.unassignedCategoryLabel
|
|
||||||
}'`}
|
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user