fritz-marshal / fritz

Astronomical data platform for the Zwicky Transient Facility.
https://fritz.science
Other
24 stars 34 forks source link

Kowalski filter auto-followup: don't edit original form #538

Closed Theodlz closed 1 year ago

Theodlz commented 1 year ago

It looks like the current code does not make a copy as expected (probably, it does make a copy but of the lookup dict, which then still points to the original form).

This PR (untested yet) should fix that by first accessing the form in the lookup, and then making a copy of it.

The last option, which is not as "clean" but always works, is to JSON.stringify and then JSON.parse.