Skip to content

Commit

Permalink
fix: NMRium button disabled on 2D NMR (ComPlat#1848)
Browse files Browse the repository at this point in the history
Co-authored-by: Lan Le <[email protected]>
  • Loading branch information
baolanlequang and Lan Le authored Apr 5, 2024
1 parent edfd5ec commit f3cf95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/packs/src/components/common/SpectraEditorButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function SpectraEditorButton({
bsSize="xsmall"
onToggle={(_, event) => { if (event) { event.stopPropagation(); } }}
onClick={toggleNMRDisplayerModal}
disabled={!(spcInfos.length > 0)}
disabled={!hasJcamp && !(spcInfos.length > 0)}
>
<i className="fa fa-bar-chart" />
</Button>
Expand Down

0 comments on commit f3cf95f

Please sign in to comment.