VSA JS Error`cannot read suggestionsListClass of undefined `
Summary
While validating #340276 (closed) on workflowstaging, I noticed a JS console error, this is confirmed on master as well, while it doesnt affect usage of the page, it would be good to fix this error.
It looks like this is an instance of this known issue. This doesnt happen in group VSA since we have an apollo client there, but we dont use apollo in project VSA.
Related to #326701 (closed) since that introduced the filter bar to project VSA
Steps to reproduce
- Navigate to Value stream analytics, for any project
- Open the web console
- A JS error should appear
Example Project
https://staging.gitlab.com/gitlab-org/gitlab/-/value_stream_analytics
What is the current bug behavior?
An error appears
What is the expected correct behavior?
No JS errors on page load
Possible fixes
As per the troubleshooting link, adding a blank apolloProvider
will fix this
diff --git a/app/assets/javascripts/cycle_analytics/index.js b/app/assets/javascripts/cycle_analytics/index.js
index 620da0104e0..34ef03409b8 100644
--- a/app/assets/javascripts/cycle_analytics/index.js
+++ b/app/assets/javascripts/cycle_analytics/index.js
@@ -45,6 +45,7 @@ export default () => {
new Vue({
el,
name: 'CycleAnalytics',
+ apolloProvider: {},
store,
render: (createElement) =>
createElement(CycleAnalytics, {
Without apolloProvider | With apolloProvider |
---|---|
![]() |
![]() |