diff --git a/src/mapper/src/lib/components/dialog-task-actions.svelte b/src/mapper/src/lib/components/dialog-task-actions.svelte
index 1b4c2c5072..dceaf3720e 100644
--- a/src/mapper/src/lib/components/dialog-task-actions.svelte
+++ b/src/mapper/src/lib/components/dialog-task-actions.svelte
@@ -35,7 +35,7 @@
>
-
Task #{taskStore.selectedTaskId}
+
Task #{taskStore.selectedTaskIndex}
{
clickMapNewFeature();
@@ -58,7 +58,7 @@
{#if taskStore.selectedTaskState === 'UNLOCKED_TO_MAP'}
-
Do you want to start mapping task #{taskStore.selectedTaskId}?
+
Do you want to start mapping task #{taskStore.selectedTaskIndex}?
{:else if taskStore.selectedTaskState === 'LOCKED_FOR_MAPPING'}
-
Task #{taskStore.selectedTaskId} has been locked. Is the task completely mapped?
+
Task #{taskStore.selectedTaskIndex} has been locked. Is the task completely mapped?
resetTask(projectData?.id, taskStore.selectedTaskId)}
diff --git a/src/mapper/src/lib/components/map/main.svelte b/src/mapper/src/lib/components/map/main.svelte
index 2c069f9809..ce75c68af5 100644
--- a/src/mapper/src/lib/components/map/main.svelte
+++ b/src/mapper/src/lib/components/map/main.svelte
@@ -164,7 +164,7 @@
if (clickedTaskFeature && clickedTaskFeature?.length > 0) {
taskAreaClicked = true;
const clickedTaskId = clickedTaskFeature[0]?.properties?.fid;
- taskStore.setSelectedTaskId(clickedTaskId);
+ taskStore.setSelectedTaskId(clickedTaskId, clickedTaskFeature[0]?.properties?.task_index);
if (+projectSetupStepStore.projectSetupStep === projectSetupStepEnum['task_selection']) {
localStorage.setItem(`project-${projectId}-setup`, projectSetupStepEnum['complete_setup']);
projectSetupStepStore.setProjectSetupStep(projectSetupStepEnum['complete_setup']);
@@ -322,7 +322,7 @@
on:click={(_e) => {
// deselect everything on click, to allow for re-selection
// if the user clicks on a feature layer directly (on:click)
- taskStore.setSelectedTaskId(null);
+ taskStore.setSelectedTaskId(null, null);
taskAreaClicked = false;
toggleActionModal(null);
entitiesStore.setSelectedEntity(null);
diff --git a/src/mapper/src/lib/components/more/activities.svelte b/src/mapper/src/lib/components/more/activities.svelte
index b70409d052..de338f1c1b 100644
--- a/src/mapper/src/lib/components/more/activities.svelte
+++ b/src/mapper/src/lib/components/more/activities.svelte
@@ -21,7 +21,9 @@
{:else if taskEvents?.length === 0}
- {taskStore?.selectedTaskId ? `No activities yet on task ${taskStore?.selectedTaskId}` : 'No activities yet'}
+ {taskStore?.selectedTaskIndex
+ ? `No activities yet on task ${taskStore?.selectedTaskIndex}`
+ : 'No activities yet'}
{:else}
diff --git a/src/mapper/src/lib/components/more/comment.svelte b/src/mapper/src/lib/components/more/comment.svelte
index b377a22afc..6b8f502cf1 100644
--- a/src/mapper/src/lib/components/more/comment.svelte
+++ b/src/mapper/src/lib/components/more/comment.svelte
@@ -20,7 +20,7 @@