Skip to content

Commit

Permalink
Update react-components/src/components/RevealToolbar/LayersContainer/…
Browse files Browse the repository at this point in the history
…CadModelLayersContainer.tsx

Co-authored-by: Deep <70804363+deep-cognite@users.noreply.github.com>
  • Loading branch information
pramodcog and deep-cognite authored Jul 24, 2023
1 parent 6f7e5ab commit c0c608c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const CadModelLayersContainer = (): ReactElement => {
const handleCadModelVisibility = (model: CogniteCadModel): void => {
selectedCadModels.map((data) => {
if (data.model === model) {
data.isToggled = !data.isToggled;
return {
..data,
isToggled: !data.isToggled
}
return data;
});
Expand Down

0 comments on commit c0c608c

Please sign in to comment.