mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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. #6858
This commit is contained in:
parent
ce372a73bf
commit
47e734dbf2
@ -45,4 +45,5 @@ Bug fixes
|
||||
| `Issue #6790 <https://github.com/pgadmin-org/pgadmin4/issues/6790>`_ - Ensure that the backup works properly for PG 16 on the latest docker image.
|
||||
| `Issue #6799 <https://github.com/pgadmin-org/pgadmin4/issues/6799>`_ - Fixed an issue where the user is unable to select objects on the backup dialog due to tree flickering.
|
||||
| `Issue #6836 <https://github.com/pgadmin-org/pgadmin4/issues/6836>`_ - Fixed an issue where non-super PostgreSQL users are not able to terminate their own connections from dashboard.
|
||||
| `Issue #6851 <https://github.com/pgadmin-org/pgadmin4/issues/6851>`_ - Fix an issue where scale in columns is not allowed to have value as 0 or below.
|
||||
| `Issue #6851 <https://github.com/pgadmin-org/pgadmin4/issues/6851>`_ - Fix an issue where scale in columns is not allowed to have value as 0 or below.
|
||||
| `Issue #6858 <https://github.com/pgadmin-org/pgadmin4/issues/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.
|
@ -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 (<tr key={key}>
|
||||
<td>{key}</td>
|
||||
<td>{plan[key]}</td>
|
||||
<td>{value}</td>
|
||||
</tr>);
|
||||
}
|
||||
})}
|
||||
|
Loading…
Reference in New Issue
Block a user