Skip to content

Commit

Permalink
fix: spectra zones detection should be only on FT 2D spectra
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Jun 26, 2023
1 parent 588c776 commit 7b14d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/reducer/actions/ZonesActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function handleAutoZonesDetection(
function handleAutoSpectraZonesDetection(draft: Draft<State>) {
for (const datum of draft.data) {
const { info, data } = datum;
if (info.dimension === 2) {
if (info.dimension === 2 && info.isFt) {
const { minX, maxX, minY, maxY } = info.isFid
? (data as NmrData2DFid).re
: (data as NmrData2DFt).rr;
Expand Down

0 comments on commit 7b14d3a

Please sign in to comment.