refactor(warnings): only show for node_env=development
This commit is contained in:
+5
-3
@@ -141,9 +141,11 @@ export function createPositionChange({
|
||||
]
|
||||
: currentExtent;
|
||||
} else {
|
||||
console.warn(
|
||||
'[React Flow]: Only child nodes can use a parent extent. Help: https://reactflow.dev/error-decoder#500'
|
||||
);
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.warn(
|
||||
'[React Flow]: Only child nodes can use a parent extent. Help: https://reactflow.dev/error-decoder#500'
|
||||
);
|
||||
}
|
||||
currentExtent = nodeExtent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user