Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'replace') #718

Open
sentry-io bot opened this issue Nov 8, 2022 · 0 comments
Open

TypeError: Cannot read properties of undefined (reading 'replace') #718

sentry-io bot opened this issue Nov 8, 2022 · 0 comments
Labels
backlog Queued in backlog bug Something isn't working good first issue Good for newcomers hacktoberfest spring cleaning Could be cleaned up one day

Comments

@sentry-io
Copy link

sentry-io bot commented Nov 8, 2022

This is caused by calls to diagram-js#translate where no string is provided, e.g. translate(typeRef) where typeRef is undefined. Simply adding || '' is not a fix because then we lose the label which was meant to be always there.

Sentry Issue: BPMN-IO-DEMO-3KT

TypeError: Cannot read properties of undefined (reading 'replace')
  at _translate (./node_modules/dmn-js-decision-table/node_modules/diagram-js/lib/i18n/translate/translate.js:23:19)
  at render (webpack://bpmn-io-demo/../../src/features/decision-table-head/editor/components/OutputCell.js:123:55)
  at updateClassComponent (./node_modules/inferno/dist/index.esm.js:1560:33)
  at patchComponent (./node_modules/inferno/dist/index.esm.js:1606:13)
  at patch (./node_modules/inferno/dist/index.esm.js:1365:9)
...
(24 additional frame(s) were not displayed)
@barmac barmac added bug Something isn't working backlog Queued in backlog spring cleaning Could be cleaned up one day good first issue Good for newcomers hacktoberfest labels Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog bug Something isn't working good first issue Good for newcomers hacktoberfest spring cleaning Could be cleaned up one day
Development

No branches or pull requests

1 participant