mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 23:54:09 -06:00
Check if type is string for nested type changes parsing.
This commit is contained in:
parent
51c11a21fa
commit
453f26817a
@ -108,7 +108,7 @@ function getChangedData(topSchema, mode, sessData, stringify=false) {
|
||||
/* Will be called recursively as data can be nested */
|
||||
const parseChanges = (schema, accessPath, changedData)=>{
|
||||
schema.fields.forEach((field)=>{
|
||||
if((field.type||'').startsWith('nested-')) {
|
||||
if(typeof(field.type) == 'string' && field.type.startsWith('nested-')) {
|
||||
/* its nested */
|
||||
parseChanges(field.schema, accessPath, changedData);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user