Skip to content

Commit 2c67509

Browse files
authored
Fixed tasksBySight (#919)
1 parent 0a5c205 commit 2c67509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/inspection-capture-web/src/PhotoCapture/hooks/usePhotoCaptureSightState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function getCaptureTasks(
128128
): TaskName[] {
129129
const tasks: TaskName[] = [];
130130
captureSights.forEach((sight) => {
131-
const sightTasks = tasksBySight ? tasksBySight[sight.id] : sight.tasks;
131+
const sightTasks = tasksBySight?.[sight.id] ?? sight.tasks;
132132
sightTasks.forEach((task) => {
133133
if (!tasks.includes(task)) {
134134
tasks.push(task);

0 commit comments

Comments
 (0)