From d5345e6de885d083b981ebd774b13043d18aff17 Mon Sep 17 00:00:00 2001 From: Qiyun Dai Date: Wed, 12 Feb 2025 10:52:01 -0500 Subject: [PATCH] perform list update upon deletion on FE only (#366) --- ecc/blocks/ecc-dashboard/ecc-dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecc/blocks/ecc-dashboard/ecc-dashboard.js b/ecc/blocks/ecc-dashboard/ecc-dashboard.js index 54723c71..f71a8682 100644 --- a/ecc/blocks/ecc-dashboard/ecc-dashboard.js +++ b/ecc/blocks/ecc-dashboard/ecc-dashboard.js @@ -426,7 +426,7 @@ function initMoreOptions(props, config, eventObj, row) { return; } - const newJson = await getEventsForUser(); + const newJson = props.data.filter((event) => event.eventId !== eventObj.eventId); props.data = newJson; props.filteredData = newJson;