Skip to content

Commit

Permalink
fix(experiment): Fixed hierarchical table of scientific objects
Browse files Browse the repository at this point in the history
OpenSILEX/opensilex-dev!1171

(cherry picked from commit b132a89)
  • Loading branch information
Crejak committed Feb 1, 2024
1 parent d63d0a1 commit db20320
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- [Map] When we open the "map" module, the focus is now on the correct extent of the scientific objects of the experiment.

- [Experiment] Scientific objects are now displayed in a hierarchy again by default, instead of a flat table.
Flatten display will now only trigger when searching using certain filters, such as data criteria.

## [1.2.0] - Caramelized Crystal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,9 @@ export default class ExperimentScientificObjects extends Vue {
console.debug("searchoing....", JSON.stringify(this.filters));
let orderBy = ["name=asc"];
if(this.filters.parent || this.filters.types.length !== 0 || this.filters.factorLevels.length !== 0 || this.filters.name.length !== 0 || this.filters.germplasm || this.filters.criteriaDto) {
const hasAnyCriterion = this.filters.criteriaDto.criteria_list.length > 0;
if(this.filters.parent || this.filters.types.length !== 0 || this.filters.factorLevels.length !== 0 ||
this.filters.name.length !== 0 || this.filters.germplasm || hasAnyCriterion) {
return this.soService.searchScientificObjects(
this.uri, // experiment uri?: string,
this.filters.types,
Expand Down

0 comments on commit db20320

Please sign in to comment.