We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a5c205 commit 2c67509Copy full SHA for 2c67509
packages/inspection-capture-web/src/PhotoCapture/hooks/usePhotoCaptureSightState.ts
@@ -128,7 +128,7 @@ function getCaptureTasks(
128
): TaskName[] {
129
const tasks: TaskName[] = [];
130
captureSights.forEach((sight) => {
131
- const sightTasks = tasksBySight ? tasksBySight[sight.id] : sight.tasks;
+ const sightTasks = tasksBySight?.[sight.id] ?? sight.tasks;
132
sightTasks.forEach((task) => {
133
if (!tasks.includes(task)) {
134
tasks.push(task);
0 commit comments