diff --git a/docs/en_US/release_notes_7_8.rst b/docs/en_US/release_notes_7_8.rst index 27832341b..b20205ada 100644 --- a/docs/en_US/release_notes_7_8.rst +++ b/docs/en_US/release_notes_7_8.rst @@ -45,4 +45,5 @@ Bug fixes | `Issue #6790 `_ - Ensure that the backup works properly for PG 16 on the latest docker image. | `Issue #6799 `_ - Fixed an issue where the user is unable to select objects on the backup dialog due to tree flickering. | `Issue #6836 `_ - Fixed an issue where non-super PostgreSQL users are not able to terminate their own connections from dashboard. - | `Issue #6851 `_ - Fix an issue where scale in columns is not allowed to have value as 0 or below. \ No newline at end of file + | `Issue #6851 `_ - Fix an issue where scale in columns is not allowed to have value as 0 or below. + | `Issue #6858 `_ - Fix an issue in graphical explain plan where query tool crashes when the plan has parallel workers details and sort node is clicked for details. \ No newline at end of file diff --git a/web/pgadmin/static/js/Explain/Graphical.jsx b/web/pgadmin/static/js/Explain/Graphical.jsx index 5d7ec2f8c..fe1c295a2 100644 --- a/web/pgadmin/static/js/Explain/Graphical.jsx +++ b/web/pgadmin/static/js/Explain/Graphical.jsx @@ -190,14 +190,23 @@ function NodeDetails({plan, download=false}) { return <> {Object.keys(plan).map((key)=>{ if(AUXILIARY_KEYS.indexOf(key) != -1) { - return <>; + return null; + } + let value = plan[key]; + if(_.isArray(value)) { + value = value.map((v)=>{ + if(typeof(v) == 'object') { + return JSON.stringify(v, null, 2); + } + return v; + }); } if(download) { - return `${key}: ${plan[key]}\n`; + return `${key}: ${value}\n`; } else { return ( {key} - {plan[key]} + {value} ); } })}