Skip to content

Commit

Permalink
Remove unneeded check for hierarchical relations
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Dec 20, 2024
1 parent 0769f5b commit 6fb8fab
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@ export class RelationPickerGroupComponent implements OnChanges {
}


// Button not shown when waiting for input
public showPlusButton(): boolean {

if ((this.relationDefinition.name === 'isRecordedIn' || this.relationDefinition.name === 'liesWithin') &&
(this.relations[this.relationDefinition.name] &&
this.relations[this.relationDefinition.name].length > 0)) return false;

return !this.relations[this.relationDefinition.name]
|| isEmpty(this.relations[this.relationDefinition.name])
|| this.validateNewest();
Expand Down

0 comments on commit 6fb8fab

Please sign in to comment.