refactor: remove console.warn from deepCopy (#4471)

Jan realized that this was logging way too much (as in, we have way too many circular references).

I've changed this to be reported to Sentry, which should hopefully get merged next week.
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-10-28 16:10:56 +02:00 committed by GitHub
parent 658e886861
commit 818f57dd63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@ export const deepCopy = <T>(source: T, hash = new WeakMap(), path = ''): T => {
return source;
}
if (hash.has(source)) {
console.warn(`Circular reference detected at "source${path}"`);
return hash.get(source);
}
// Date