Skip to content

Commit

Permalink
chore: pass draft data directly to the filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jobo322 committed Nov 5, 2024
1 parent 6d69745 commit f78afeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/component/reducer/actions/FiltersActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1465,10 +1465,10 @@ function handleCalculateManualTwoDimensionPhaseCorrection(

const filterOptions = getTwoDimensionsPhaseCorrectionOptions(draft);

const { data, info } = spectrum;
const _data = { data, info };
phaseCorrectionTwoDimensions.apply(_data, filterOptions);
draft.data[index].data = _data.data;
phaseCorrectionTwoDimensions.apply(
draft.data[index] as Spectrum2D,
filterOptions,
);
}

function getTwoDimensionsPhaseCorrectionOptions(draft: Draft<State>) {
Expand Down

0 comments on commit f78afeb

Please sign in to comment.