chore(warnings): only print for node_env=development

This commit is contained in:
moklick
2022-05-02 14:57:38 +02:00
parent 2e9a203c0e
commit 18be5f1773
6 changed files with 19 additions and 8 deletions
+1
View File
@@ -141,6 +141,7 @@ export function createPositionChange({
]
: currentExtent;
} else {
// @ts-ignore
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'