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 a586e16 commit 12eb534Copy full SHA for 12eb534
static/app/views/explore/hooks/useTraceItemDetails.tsx
@@ -77,7 +77,8 @@ export function useTraceItemDetails(props: UseTraceItemDetailsProps) {
77
const project = useProjectFromId({project_id: props.projectId});
78
const enabled = (props.enabled ?? true) && !!project;
79
80
- if (!project) {
+ // Only capture exception if the project is not found and the query is enabled.
81
+ if ((props.enabled ?? true) && !project) {
82
captureException(
83
new Error(`Project "${props.projectId}" not found in useTraceItemDetails`)
84
);
0 commit comments