Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbasti committed Dec 13, 2024
1 parent 8c3d4ba commit 319e200
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ export const CurveValuesPlot = React.memo(
} as ControlledTooltipProps);

const minMaxValuesCalculation = (
columns: ExportableContentTableColumn<CurveSpecification>[]
myColumns: ExportableContentTableColumn<CurveSpecification>[]
) =>
columns
myColumns
.map((col) => col.columnOf.mnemonic)
.map((curve) => {
const curveData = props.data
Expand All @@ -133,7 +133,7 @@ export const CurveValuesPlot = React.memo(
.slice(1);

const [ranges, setRanges] = useState<CustomCurveRange[]>(
minMaxValuesCalculation(props.columns)
minMaxValuesCalculation(columns)
);

const transformedData = useMemo(
Expand Down Expand Up @@ -280,6 +280,7 @@ export const CurveValuesPlot = React.memo(

const onChange = (curveRanges: CustomCurveRange[]) => {
setRanges(curveRanges);
console.log(ranges);

Check failure on line 283 in Src/WitsmlExplorer.Frontend/components/ContentViews/CurveValuesPlot.tsx

View workflow job for this annotation

GitHub Actions / Build and Test

Unexpected console statement
setRefreshGraph(!refreshGraph);
};

Expand Down Expand Up @@ -362,9 +363,7 @@ export const CurveValuesPlot = React.memo(
}}
>
<SettingCustomRanges
minMaxValuesCalculation={minMaxValuesCalculation(
props.columns
)}
minMaxValuesCalculation={ranges}
onChange={onChange}
onClose={onClose}
/>
Expand Down

0 comments on commit 319e200

Please sign in to comment.