LP#1855780: avoid race condition when deleting env or params
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 8 Nov 2021 17:00:42 +0000 (12:00 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 8 Nov 2021 17:00:42 +0000 (12:00 -0500)
commitefde03e4c2bc34b4756638bdfd79842b14382f17
tree0234c8a127111d6967fc1073c974675255cb21c8
parentcf96137cc11a7445b9a30ca927dfc62527de57ac
LP#1855780: avoid race condition when deleting env or params

When deleting from a grid using pcrud.autoApply, the grid
should be refreshed only at the very end. Otherwise, even if you're
deleting only one row, the grid reload could occur before the
deletion is committed, yielding a grid fetch error when
pcrud complains about verifying access to a row that is
no longer in the database.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/local/triggers/trigger-edit.component.ts