diff options
Diffstat (limited to 'app/assets')
3 files changed, 4 insertions, 7 deletions
diff --git a/app/assets/javascripts/lib/utils/text_utility.js b/app/assets/javascripts/lib/utils/text_utility.js index 386d69ea430..1b7f8732c65 100644 --- a/app/assets/javascripts/lib/utils/text_utility.js +++ b/app/assets/javascripts/lib/utils/text_utility.js @@ -172,8 +172,8 @@ export const splitCamelCase = string => * @param {String} string A string namespace, * i.e. "My Group / My Subgroup / My Project" */ -export const truncateNamespace = string => { - if (_.isUndefined(string) || _.isNull(string) || !_.isString(string)) { +export const truncateNamespace = (string = '') => { + if (_.isNull(string) || !_.isString(string)) { return ''; } diff --git a/app/assets/javascripts/vue_shared/components/project_selector/project_selector.vue b/app/assets/javascripts/vue_shared/components/project_selector/project_selector.vue index bb17a9b331e..596fd48f96a 100644 --- a/app/assets/javascripts/vue_shared/components/project_selector/project_selector.vue +++ b/app/assets/javascripts/vue_shared/components/project_selector/project_selector.vue @@ -56,8 +56,8 @@ export default { focusSearchInput() { this.$refs.searchInput.focus(); }, - onInput: _.debounce(function debouncedOnInput(e) { - this.$emit('searched', e.target.value); + onInput: _.debounce(function debouncedOnInput() { + this.$emit('searched', this.searchQuery); }, SEARCH_INPUT_TIMEOUT_MS), }, }; diff --git a/app/assets/stylesheets/components/project_list_item.scss b/app/assets/stylesheets/components/project_list_item.scss index 6f9933e3d70..8e7c2c4398c 100644 --- a/app/assets/stylesheets/components/project_list_item.scss +++ b/app/assets/stylesheets/components/project_list_item.scss @@ -17,9 +17,6 @@ margin-left: -$gl-padding; margin-right: -$gl-padding; - // should be replaced by Bootstrap's - // .overflow-hidden utility class once - // we upgrade Bootstrap to at least 4.2.x .project-namespace-name-container { overflow: hidden; } |