mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -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:
committed by
Akshay Joshi
parent
fd1f71587f
commit
f615ef30f9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user