diff --git a/src/components/ProjectListItemConnected.tsx b/src/components/ProjectListItemConnected.tsx index 489b31bc9..8dc099bff 100644 --- a/src/components/ProjectListItemConnected.tsx +++ b/src/components/ProjectListItemConnected.tsx @@ -64,7 +64,7 @@ export const ProjectListItemConnected: FC<{ } }); - const unsubDelete = on('on:goal:update', (updatedId) => { + const unsubDelete = on('on:goal:delete', (updatedId) => { const idInList = projectDeepInfo?.goals.find(({ _shortId }) => _shortId === updatedId); if (idInList) { utils.project.getDeepInfo.invalidate();