Skip to content

Fix panelType prop issue in provide

Lorenz van Herwaarden requested to merge fix-panel-type-error-provide-props into master

What does this MR do and why?

Fix error in console Error in beforeCreate hook: "TypeError: Cannot read properties of undefined (reading 'panelType')" because of bug in vue-apollo.

In the latest release of vue-apollo (v3.1.1) this is fixed, but we haven't updated to that version. An MR to update to that version is open: !131712 (merged), but we have some open issues with tests not working due to other fixes in vue-apollo.

How to set up and validate locally

Go to project (e.g. http://gdk.test:3000/gitlab-org/gitlab-shell) and see that error does not appear anymore in the console.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lorenz van Herwaarden

Merge request reports

Loading