Skip to content

Commit

Permalink
Update src/pageEditor/store/editor/editorSelectors/editorAnalysisSele…
Browse files Browse the repository at this point in the history
…ctors.ts
  • Loading branch information
grahamlangford authored Oct 24, 2024
1 parent e5fd675 commit 6a2e9ce
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@ const selectGetActiveModComponentAnalysisAnnotationsForPath = createSelector(
return 1;
}

case AnnotationType.Info: {
return 0
}

default: {
return 0;
const exhaustiveCheck: never = annotation.type;
throw new Error(`Invalid annotation type: ${exhaustiveCheck}`);
}
}
}
});

Check failure on line 72 in src/pageEditor/store/editor/editorSelectors/editorAnalysisSelectors.ts

View workflow job for this annotation

GitHub Actions / types

',' expected.
Expand Down

0 comments on commit 6a2e9ce

Please sign in to comment.