]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
log, journal view: fix access to `me` after destroying
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 21 Nov 2022 07:53:42 +0000 (08:53 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Nov 2022 09:27:50 +0000 (10:27 +0100)
commited6721d0ff093009ed23af2b7991bdeb1e1dfa25
tree94798e8046e2857815162e8979eba857bc7ca604
parentd13f97d6e3c01d0397244695e48fdd740c46b296
log, journal view: fix access to `me` after destroying

it can happen that the view is destroyed during an api call, so we
should check if it's destroyed as the first thing in the callback

if the view is destroyed, there is nothing we can do here, so simply
return

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/panel/JournalView.js
src/panel/LogView.js