Skip to content

Commit

Permalink
move defaultQuery into constructor of base-search-view, rm from stand…
Browse files Browse the repository at this point in the history
…ard, rm console log, re #10804
  • Loading branch information
whatisgalen committed Aug 13, 2024
1 parent 0b013e7 commit c6fe910
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ define([
constructor: function() {
this.name = 'Base Search View';
this.filter = {};
this.defaultQuery = {};
Backbone.View.apply(this, arguments);
},

Expand All @@ -18,7 +19,6 @@ define([
$.extend(this, sharedStateObject);
this.query = sharedStateObject.query;
this.queryString = sharedStateObject.queryString;
this.defaultQuery = {};
this.updateRequest = sharedStateObject.updateRequest;
this.userIsReviewer = sharedStateObject.userIsReviewer;
this.total = sharedStateObject.total;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ define([
const self = this;
sharedStateObject.componentName = componentName;
BaseSearchViewComponent.prototype.initialize.call(this, sharedStateObject);
this.defaultQuery = {"paging-filter": "1", "search-view":"standard-search-view", tiles: "true"};

this.selectedPopup = ko.observable('');
this.sharedStateObject.selectedPopup = this.selectedPopup;
Expand Down
1 change: 0 additions & 1 deletion arches/app/media/js/views/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ define([
};
Object.values(SearchComponents).forEach(function(component) {
this.searchFilterVms[component.componentname] = ko.observable(null);
this.searchFilterVms[component.componentname].subscribe(vm => {if (vm) console.log(component.componentname);})
}, this);
this.searchViewFiltersLoaded = ko.computed(function() {
let res = true;
Expand Down

0 comments on commit c6fe910

Please sign in to comment.