Skip to content

Commit

Permalink
fix: remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankWang117 committed Feb 15, 2022
1 parent 47c4fed commit 482ab53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/gantt/src/components/table/gantt-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ export class GanttTableComponent implements OnInit, OnChanges {
return new SelectionModel(this._isMultiSelect, []);
}
selectItem(item: GanttItemInternal) {
console.log(new Array(8).fill('⬇️').join(' '));
console.log('item', item);
console.log(new Array(8).fill('⬆️').join(' '));
if (!this.selectable) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/gantt/src/gantt.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ export class NgxGanttComponent extends GanttUpper implements OnInit, AfterViewIn
selectedItemChange(selectedData: { selectionData: SelectionModel<string>; originSelectionData: SelectionModel<GanttItemInternal> }) {
this.selectionData = selectedData.selectionData;
const selectedItems = selectedData.originSelectionData.selected;

if (this.isMultiSelect) {
this.selectedChange.emit(selectedItems);
} else {
const selectedItem: GanttItemInternal = selectedItems.length >= 0 ? selectedItems[0] : null;

this.selectedChange.emit(selectedItem);
}
}
Expand Down

0 comments on commit 482ab53

Please sign in to comment.