mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
fix JSONstringifyWithCycles
This commit is contained in:
parent
c2eb49845f
commit
11c24377cb
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ define [
|
|||
seen = []
|
||||
return JSON.stringify o, (k,v) ->
|
||||
if (typeof v == 'object')
|
||||
if ( !seen.indexOf(v) )
|
||||
if ( seen.indexOf(v) >= 0 )
|
||||
return '__cycle__'
|
||||
seen.push(v);
|
||||
return v
|
||||
|
|
Loading…
Reference in a new issue