Skip to content

Commit

Permalink
Render at most 6 channels
Browse files Browse the repository at this point in the history
  • Loading branch information
tddough98 committed May 26, 2021
1 parent c9152fd commit c03e907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion visualizer/src/Canvas/RawCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const RawCanvas = ({ sx, sy, sw, sh, zoom, width, height, className }) =>
width={width}
height={height}
/>
{Object.entries(channels).map(([index, channel]) => <ChannelCanvas
{Object.entries(channels).map(([index, channel]) => index < 6 && <ChannelCanvas
key={index}
channel={channel}
setChannelCanvases={setChannelCanvases}/>)}
Expand Down
2 changes: 1 addition & 1 deletion visualizer/src/ControlPanel/RGBControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ChannelSliders = () => {
</Tooltip>
</Box>
{Object.entries(channels).map(
([index, channel]) => <ChannelSlider key={index} channel={channel} />
([index, channel]) => index < 6 && <ChannelSlider key={index} channel={channel} />
)}
</>;
}
Expand Down

0 comments on commit c03e907

Please sign in to comment.