Skip to content

Commit

Permalink
selecting pipeline operator disables the button
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mrgrsk committed Jul 14, 2024
1 parent 589ff29 commit 4c83444
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ModelingMachineProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,10 @@ export const ModelingMachineProvider = ({
pathToSelectedNode,
'CallExpression'
)
if ('node' in segmentNode) {
// check wethe segment is in sketchLineHelperMap
if (
'node' in segmentNode &&
segmentNode.node.type === 'CallExpression'
) {
const segmentName = segmentNode.node.callee.name
if (segmentName in sketchLineHelperMap) {
return true
Expand Down

0 comments on commit 4c83444

Please sign in to comment.