Skip to content

Commit

Permalink
Remove unnecessary function call #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 8abc746 commit f003954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/media/js/viewmodels/reference-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ define([
});

this.value.subscribe(val => {
if (val && self.valueAndSelectionDiffer(val, self.selectionValue)) {
if (val?.length) {
self.selectionValue(val.map(item=>ko.unwrap(item.uri)));
} else {
self.selectionValue(null);
Expand Down

0 comments on commit f003954

Please sign in to comment.