Skip to content

Commit

Permalink
⚡ Only capture errors from components in Suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Jan 30, 2024
1 parent 082356e commit 7c8e543
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/editor-ui/src/components/ParameterInputList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ export default defineComponent({
const asyncLoadingError = ref(false);
// This will catch errors in async components
onErrorCaptured((e) => {
onErrorCaptured((e, component) => {
if (!component._.type.name in ['FixedCollectionParameter', 'CollectionParameter']) {

Check failure on line 245 in packages/editor-ui/src/components/ParameterInputList.vue

View workflow job for this annotation

GitHub Actions / Lint changes

Replace `!component._.type.name` with `(!component._.type.name)`
return;
}
asyncLoadingError.value = true;
console.error(e);
window?.Sentry?.captureException(e, {
Expand Down

0 comments on commit 7c8e543

Please sign in to comment.