Files
backstage/plugins/techdocs-module-addons-contrib
Andy Ladjadj 9c12a76c9e fix(techdocs): prevent to throw an error when the SCM provider is not supported (#29154)
* fix(techdocs): prevent to throw error on undefined 'selection'

Error
TypeError

Message
Failed to execute 'containsNode' on 'Selection': parameter 1 is not of type 'Node'.

Stack Trace
TypeError: parameter 1 is not of type 'Node'.
    at https://backstage.mpi-internal.com/static/module-backstage.b2517ed5.js:618:1729
    at ul (https://backstage.mpi-internal.com/static/module-react-dom.b4fe5cf3.js:16:24313)
    at Ct (https://backstage.mpi-internal.com/static/module-react-dom.b4fe5cf3.js:16:42455)
    at qs (https://backstage.mpi-internal.com/static/module-react-dom.b4fe5cf3.js:16:34578)
    at Ln (https://backstage.mpi-internal.com/static/module-react-dom.b4fe5cf3.js:24:1590)
    at MessagePort.Zn (https://backstage.mpi-internal.com/static/module-react-dom.b4fe5cf3.js:24:1980)

Signed-off-by: Andy LADJADJ <andy.ladjadj@adevinta.com>

* doc: add changeset

Signed-off-by: Andy LADJADJ <andy.ladjadj@adevinta.com>

* chore(techinsights-addon): doesn't load the component for unsuported repositories

Signed-off-by: Andy LADJADJ <andy.ladjadj@adevinta.com>

* Update plugins/techdocs-module-addons-contrib/src/ReportIssue/ReportIssueContent.tsx

Co-authored-by: Thomas Cardonne <thomas.cardonne@adevinta.com>
Signed-off-by: Andy Ladjadj <andy.ladjadj@adevinta.com>

* Update plugins/techdocs-module-addons-contrib/src/ReportIssue/ReportIssueContent.tsx

Co-authored-by: Thomas Cardonne <thomas.cardonne@adevinta.com>
Signed-off-by: Andy Ladjadj <andy.ladjadj@adevinta.com>

* fix: doesn't test that selection contains feebackContainer

Signed-off-by: Andy LADJADJ <andy.ladjadj@adevinta.com>

* ci: update the changeset

Signed-off-by: Andy LADJADJ <andy.ladjadj@adevinta.com>

---------

Signed-off-by: Andy LADJADJ <andy.ladjadj@adevinta.com>
Signed-off-by: Andy Ladjadj <andy.ladjadj@adevinta.com>
Co-authored-by: Thomas Cardonne <thomas.cardonne@adevinta.com>
2025-03-26 19:40:26 -04:00
..
2025-03-18 12:55:57 +00:00
2025-03-18 12:55:57 +00:00