fix console noise
This commit is contained in:
@ -228,7 +228,11 @@ class StraightSegment implements SegmentUtils {
|
|||||||
|
|
||||||
// Check if segment is fully constrained (only if we have AST and code)
|
// Check if segment is fully constrained (only if we have AST and code)
|
||||||
const isFullyConstrained =
|
const isFullyConstrained =
|
||||||
ast && code ? isSegmentFullyConstrained(pathToNode, ast, code) : false
|
callExpName === 'close'
|
||||||
|
? true
|
||||||
|
: ast && code
|
||||||
|
? isSegmentFullyConstrained(pathToNode, ast, code)
|
||||||
|
: false
|
||||||
|
|
||||||
const color = getSegmentColor({
|
const color = getSegmentColor({
|
||||||
theme,
|
theme,
|
||||||
@ -338,11 +342,10 @@ class StraightSegment implements SegmentUtils {
|
|||||||
// Check if segment is fully constrained and update color if needed
|
// Check if segment is fully constrained and update color if needed
|
||||||
if (ast && code) {
|
if (ast && code) {
|
||||||
const pathToNode = group.userData.pathToNode
|
const pathToNode = group.userData.pathToNode
|
||||||
const isFullyConstrained = isSegmentFullyConstrained(
|
const isFullyConstrained =
|
||||||
pathToNode,
|
group.userData.callExpName === 'close'
|
||||||
ast,
|
? true
|
||||||
code
|
: isSegmentFullyConstrained(pathToNode, ast, code)
|
||||||
)
|
|
||||||
const color = getSegmentColor({
|
const color = getSegmentColor({
|
||||||
theme: sceneInfra._theme,
|
theme: sceneInfra._theme,
|
||||||
isSelected: group.userData.isSelected,
|
isSelected: group.userData.isSelected,
|
||||||
|
|||||||
Reference in New Issue
Block a user