Skip to content

Commit

Permalink
fix: drag of dot with zero value in dot plot
Browse files Browse the repository at this point in the history
  • Loading branch information
kswenson committed Nov 16, 2024
1 parent 0879f03 commit 05e38f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/src/components/graph/hooks/use-dot-plot-drag-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const useDotPlotDragDrop = () => {
// Record the current values, so we can change them during the drag and restore them when done
const {selection} = dataConfig || {}
selection?.forEach((anID: string) => {
const itsValue = dataDisplayGetNumericValue(dataset, anID, primaryAttrID) || undefined
const itsValue = dataDisplayGetNumericValue(dataset, anID, primaryAttrID) ?? undefined
if (itsValue != null) {
selectedDataObjects.current[anID] = itsValue
}
Expand Down

0 comments on commit 05e38f3

Please sign in to comment.