mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-28 01:41:13 -06:00
Skip the history records if the JSON info can't be parsed instead of showing 'No history'. Fixes #7468
This commit is contained in:
parent
fd1f71587f
commit
f615ef30f9
@ -20,3 +20,4 @@ Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #7411 <https://redmine.postgresql.org/issues/7411>`_ - Fixed an issue where the Database restriction is not working.
|
||||
| `Issue #7468 <https://redmine.postgresql.org/issues/7468>`_ - Skip the history records if the JSON info can't be parsed instead of showing 'No history'.
|
||||
|
@ -392,10 +392,15 @@ export function QueryHistory() {
|
||||
'trans_id': queryToolCtx.params.trans_id,
|
||||
}));
|
||||
respData.data.result.forEach((h)=>{
|
||||
h = JSON.parse(h);
|
||||
h.start_time_orig = h.start_time;
|
||||
h.start_time = new Date(h.start_time);
|
||||
qhu.current.addEntry(h);
|
||||
try {
|
||||
h = JSON.parse(h);
|
||||
h.start_time_orig = h.start_time;
|
||||
h.start_time = new Date(h.start_time);
|
||||
qhu.current.addEntry(h);
|
||||
} catch {
|
||||
/* skip the hist record */
|
||||
return;
|
||||
}
|
||||
});
|
||||
setSelectedItemKey(qhu.current.getNextItemKey());
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user