fix console noise

This commit is contained in:
Kurt Hutten Irev-Dev
2025-07-02 11:55:50 +10:00
parent 38ee257996
commit 29ae16fbf0

View File

@ -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,