Skip to content

Commit 853610a

Browse files
buenaflortrillville
authored andcommitted
fix(flutter-web): use correct field when hiding unactionable source context errors (#63203)
change to `Source` to `source` Relates to prev PR: #62998
1 parent 7340fac commit 853610a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

static/app/components/events/interfaces/crashContent/exception/actionableItems.spec.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,27 +121,27 @@ describe('Actionable Items', () => {
121121
{
122122
type: JavascriptProcessingErrors.JS_MISSING_SOURCES_CONTENT,
123123
data: {
124-
Source: 'my_app/main.dart',
124+
source: 'my_app/main.dart',
125125
},
126126
},
127127
{
128128
type: JavascriptProcessingErrors.JS_MISSING_SOURCES_CONTENT,
129129
data: {
130-
Source:
130+
source:
131131
'http://localhost:64053/Documents/flutter/packages/flutter/lib/src/material/ink_well.dart',
132132
},
133133
},
134134
{
135135
type: JavascriptProcessingErrors.JS_MISSING_SOURCES_CONTENT,
136136
data: {
137-
Source:
137+
source:
138138
'org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/async_patch.dart',
139139
},
140140
},
141141
{
142142
type: JavascriptProcessingErrors.JS_MISSING_SOURCES_CONTENT,
143143
data: {
144-
Source:
144+
source:
145145
'org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/js_helper.dart',
146146
},
147147
},

static/app/components/events/interfaces/crashContent/exception/actionableItemsUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export function shouldErrorBeShown(error: EventErrorData, event: Event) {
133133
event.sdk?.name === 'sentry.dart.flutter' &&
134134
error.type === JavascriptProcessingErrors.JS_MISSING_SOURCES_CONTENT
135135
) {
136-
const source: string | undefined = error.data?.Source;
136+
const source: string | undefined = error.data?.source;
137137
if (
138138
source &&
139139
(source.includes('org-dartlang-sdk:///dart-sdk/lib/_internal') ||

0 commit comments

Comments
 (0)