summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/projects
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2018-05-07 20:15:53 +0200
committerDennis Tang <dtang@gitlab.com>2018-05-07 20:15:53 +0200
commit0762b18bcb54a215c801365594a201a09f3da691 (patch)
tree6d2025782717b9164fb7dbe7c902c302ac4e15b3 /app/assets/javascripts/projects
parent191d321c2a3cbf1772f2a00dc46769365f299fce (diff)
downloadgitlab-ce-0762b18bcb54a215c801365594a201a09f3da691.tar.gz
revisions
Diffstat (limited to 'app/assets/javascripts/projects')
-rw-r--r--app/assets/javascripts/projects/gke_cluster_dropdowns/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/projects/gke_cluster_dropdowns/index.js b/app/assets/javascripts/projects/gke_cluster_dropdowns/index.js
index 70735f78076..dac2cc38c89 100644
--- a/app/assets/javascripts/projects/gke_cluster_dropdowns/index.js
+++ b/app/assets/javascripts/projects/gke_cluster_dropdowns/index.js
@@ -8,10 +8,10 @@ import * as CONSTANTS from './constants';
const mountComponent = (entryPoint, component, componentName, extraProps = {}) => {
const el = document.querySelector(entryPoint);
- const hiddenInput = el.querySelector('input');
-
if (!el) return false;
+ const hiddenInput = el.querySelector('input');
+
return new Vue({
el,
components: {
@@ -77,7 +77,7 @@ const initializeGapiClient = () => {
};
const initGkeDropdowns = () => {
- if (typeof gapi === 'undefined') {
+ if (!gapi) {
gkeDropdownErrorHandler();
return false;
}