Skip to content

Commit

Permalink
perform list update upon deletion on FE only (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyundai authored Feb 12, 2025
1 parent 3126d27 commit d5345e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecc/blocks/ecc-dashboard/ecc-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5345e6

Please sign in to comment.