Skip to content

Commit

Permalink
#1 fix arrow down new node bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Nov 1, 2024
1 parent 204d5e8 commit 2eb4686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
style="width: 95%; margin-left: 30px"
[title]="dataType.name"
[dataValue]="dataValuesMap.get(dataType.name)"
[selectedDataType]="selectedDataType"
[selected]="dataType.name === dataTypeName"
(click)="selectDataType(dataType)"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ export default class SidebarCard implements OnInit {
@Input() dropDown?: boolean;
@Input() open?: boolean;
@Input() dataValue?: string;
@Input() selectedDataType: Subject<DataType> = new Subject<DataType>();
@Input() selected?: boolean;
iconId!: string;
selected?: boolean;

ngOnInit(): void {
this.iconId = `${this.title}-icon`;
this.selectedDataType.subscribe((dataType: DataType) => {
this.selected = this.title === dataType.name;
});
}
}

0 comments on commit 2eb4686

Please sign in to comment.