mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix handling of JSON in the Query Tool with NULL elements. Fixes #4263
This commit is contained in:
committed by
Dave Page
parent
f1ef7b0346
commit
ee37be56f9
@@ -2424,7 +2424,7 @@ define('tools.querytool', [
|
||||
|
||||
if(data.types[0] && data.types[0].typname === 'json') {
|
||||
/* json is sent as text, parse it */
|
||||
explain_data_json = JSON.parse(data.result[0]);
|
||||
explain_data_json = JSON.parse(data.result[0][0]);
|
||||
}
|
||||
|
||||
if (explain_data_json && explain_data_json[0] &&
|
||||
|
||||
Reference in New Issue
Block a user