Skip to content

Commit

Permalink
Prevent error when loading in search #10552
Browse files Browse the repository at this point in the history
  • Loading branch information
chiatt authored and jacobtylerwalls committed May 15, 2024
1 parent 687ebb8 commit aa4f244
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arches/app/media/js/views/components/datatypes/reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ define([
const viewModel = function(params) {
const self = this;
this.search = params.search;

this.search = params.search;
if (this.search) {
params.config = ko.observable({
controlledList:[],
placeholder: arches.translations.selectAnOption,
multiValue: true
});
}

this.controlledList = params.config.controlledList;
this.multiValue = params.config.multiValue;
this.controlledLists = ko.observable();
Expand Down

0 comments on commit aa4f244

Please sign in to comment.