mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 02:18:12 +08:00
run prettier(2.0.5) (#1438)
This commit is contained in:
@@ -2,7 +2,7 @@ import calcCentroid from "../util/centroid";
|
||||
|
||||
const initialState = {
|
||||
labels: [],
|
||||
showLabels: false
|
||||
showLabels: false,
|
||||
};
|
||||
|
||||
const centroidLabels = (state = initialState, action, sharedNextState) => {
|
||||
@@ -10,7 +10,7 @@ const centroidLabels = (state = initialState, action, sharedNextState) => {
|
||||
world,
|
||||
layoutChoice,
|
||||
categoricalSelection,
|
||||
colors: { colorAccessor }
|
||||
colors: { colorAccessor },
|
||||
} = sharedNextState;
|
||||
|
||||
const showLabels = action.showLabels ?? state.showLabels;
|
||||
@@ -34,7 +34,7 @@ const centroidLabels = (state = initialState, action, sharedNextState) => {
|
||||
categoricalSelection,
|
||||
world.schema.annotations.obsByName
|
||||
)
|
||||
: []
|
||||
: [],
|
||||
};
|
||||
|
||||
case "color by categorical metadata":
|
||||
@@ -45,7 +45,7 @@ const centroidLabels = (state = initialState, action, sharedNextState) => {
|
||||
return {
|
||||
...state,
|
||||
labels: [],
|
||||
showLabels
|
||||
showLabels,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ const centroidLabels = (state = initialState, action, sharedNextState) => {
|
||||
categoricalSelection,
|
||||
world.schema.annotations.obsByName
|
||||
),
|
||||
showLabels
|
||||
showLabels,
|
||||
};
|
||||
|
||||
case "color by continuous metadata":
|
||||
|
||||
Reference in New Issue
Block a user