Skip to content

Commit

Permalink
fix: hide spectrum settings dialog if it's 2d Fid
Browse files Browse the repository at this point in the history
close #2424
  • Loading branch information
hamed-musallam committed Jun 21, 2023
1 parent 5a840c4 commit 5a780f6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/component/panels/SpectrumsPanel/SpectraTable.tsx
Expand Up @@ -171,10 +171,18 @@ export function SpectraTable(props: SpectraTableProps) {
maxWidth: '30px',
},
Cell: ({ row }) => {
const {
display,
info: { dimension, isFid },
} = row.original;
if (dimension === 2 && isFid) {
return <div />;
}

return (
<ColorIndicator
display={row.original.display}
dimension={row.original.info.dimension}
display={display}
dimension={dimension}
onClick={(event) => onOpenSettingModal(event, row.original)}
/>
);
Expand Down

0 comments on commit 5a780f6

Please sign in to comment.