forked from OpenWF/SpaceNinjaServer
By calling JSON.parse before setting everything to undefined, we don't lose the old config in case of an error. Reviewed-on: OpenWF/SpaceNinjaServer#2353 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>