Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: stefanbabukov <[email protected]>
  • Loading branch information
StefanBabukov committed Oct 5, 2023
1 parent 7c39c16 commit e1e6257
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/EditableField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const EditableField = (props) => {

const onChange = (e) => {
const { value: newValueRaw } = e.target;

const newValue = formatter(newValueRaw);

if (validationFunc) {
Expand Down Expand Up @@ -103,7 +102,9 @@ const EditableField = (props) => {
data-testid='editableFieldInput'
autoFocus
onChange={onChange}
onClick={(e) => e.stopPropagation()}
size='small'
draggable
defaultValue={editedValue}
onKeyDown={onKeyDown}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/plots/helpers/heatmap/vega/generateVegaData.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { reversed } from 'utils/arrayUtils';
const generateVegaData = (
cellOrder, expressionMatrix, heatmapSettings, cellSets,
) => {
const { selectedGenes, selectedTracks, guardlines } = heatmapSettings;
const { selectedGenes, selectedTracks, guardLines } = heatmapSettings;
const trackOrder = reversed(selectedTracks);

const data = {
Expand All @@ -26,7 +26,7 @@ const generateVegaData = (
cellOrder,
rootNode,
cellSets,
guardlines,
guardLines,
),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const MarkerHeatmap = ({ experimentId }) => {
}

const data = generateVegaData(downsampledCellOrder, downsampledMatrix, config, cellSets);
const spec = generateSpec(config, 'Cluster ID', data, true);
const spec = generateSpec(config, 'Cluster ID', data, config.showGeneLabels);

spec.description = 'Marker heatmap';

Expand Down

0 comments on commit e1e6257

Please sign in to comment.