Skip to content

Commit

Permalink
remove moment dependency from task-list.component
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin2008 committed Aug 29, 2023
1 parent a66b3d0 commit 30ab944
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { TaskQueryRequestRepresentationModel } from '../models/filter.model';
import { TaskListModel } from '../models/task-list.model';
import { taskPresetsDefaultModel } from '../models/task-preset.model';
import { TaskListService } from './../services/tasklist.service';
import moment from 'moment';
import { takeUntil, finalize } from 'rxjs/operators';
import { TaskDetailsModel } from '../models/task-details.model';

Expand Down Expand Up @@ -407,8 +406,8 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
private createRequestNode() {
const requestNode = {
appDefinitionId: this.appId,
dueAfter: this.dueAfter ? moment(this.dueAfter).toDate() : null,
dueBefore: this.dueBefore ? moment(this.dueBefore).toDate() : null,
dueAfter: this.dueAfter ? new Date(this.dueAfter) : null,
dueBefore: this.dueBefore ? new Date(this.dueBefore) : null,
processInstanceId: this.processInstanceId,
processDefinitionId: this.processDefinitionId,
text: this.name,
Expand Down

0 comments on commit 30ab944

Please sign in to comment.