mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Check for valid object existence before checking its session changed
flag in the data model. Thanks Murtuza, and Harshal for reporting it.
This commit is contained in:
@@ -366,7 +366,7 @@ function(_, pgAdmin, $, Backbone) {
|
||||
if (session) {
|
||||
if (res[k] instanceof Array) {
|
||||
res[k] = JSON.stringify(res[k]);
|
||||
} else if ((obj.sessChanged && obj.sessChanged()) || isNew) {
|
||||
} else if ((obj && obj.sessChanged && obj.sessChanged()) || isNew) {
|
||||
res[k] = obj && obj.toJSON(!isNew);
|
||||
/*
|
||||
* We will run JSON.stringify(..) only from the main object,
|
||||
|
||||
Reference in New Issue
Block a user