Commit 1607eebc authored by Mark Florian's avatar Mark Florian

Remove unused store module

As part of [Update dependencies table UI][1], the Dependency List is
being reduced from _two_ tabbed lists to just one.

That work is taking place behind the `dependency_list_ui` feature flag.
When it's disabled, the old UI will be rendered, which means the store
needs to be created with list modules for both the "All" and
"Vulnerable components" tabs.

When the flag is _enabled_, only the default "All" list module needs to
be set up. Otherwise, the UI would make an initial unnecessary network
request for the "Vulnerable components" tab/list, which isn't being
rendered.

[1]: https://gitlab.com/gitlab-org/gitlab/-/issues/195928
parent b87db076
......@@ -9,7 +9,10 @@ export default () => {
const { endpoint, emptyStateSvgPath, documentationPath, supportDocumentationPath } = el.dataset;
const store = createStore();
if (!gon.features?.dependencyListUi) {
addListType(store, DEPENDENCY_LIST_TYPES.vulnerable);
}
return new Vue({
el,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment