Skip to content

Commit

Permalink
Corrected code quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zacpwhite committed Aug 15, 2023
1 parent 6d7e508 commit e9554df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions core/Piranha.Manager/assets/dist/js/piranha.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,11 +934,12 @@ piranha.pagepicker = new Vue({
filteredItems: function () {
let self = this;

if (self.search.length < 1)
return this.items;
if (self.search && self.search.length < 1) {
return this.items;
}

let items = Object.assign([], this.items);
let searchTerm = self.search ? self.search.toLowerCase() : '';
let searchTerm = self.search ? self.search.toLowerCase() : "";

let filterRecursive = function(arr) {
return arr.reduce(function(acc, item){
Expand Down
Loading

0 comments on commit e9554df

Please sign in to comment.