Skip to content

Commit

Permalink
fix:options helper proper detect of collection objects
Browse files Browse the repository at this point in the history
  • Loading branch information
torsten-simon committed Apr 13, 2022
1 parent 3f81182 commit 5b7e8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Frontend/src/app/core-ui-module/options-helper.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ export class OptionsHelperService implements OnDestroy {
}
}
if (constrains.indexOf(Constrain.Collections) !== -1) {
if (objects.some((o) => !o.isDirectory || !o.collection)) {
if (objects.some((o) => !(o.collection && o.aspects?.includes(RestConstants.CCM_ASPECT_COLLECTION)))) {
return Constrain.Collections;
}
}
Expand Down

0 comments on commit 5b7e8ab

Please sign in to comment.