chore(gantt): run linter
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Giacomo Rossetto 2023-09-29 23:49:53 +00:00
parent 7cfc5a6519
commit 705e1ebc5e

View File

@ -95,13 +95,13 @@ const dateToDate = computed(() => new Date(new Date(filters.value.dateTo).setHou
const DAY_WIDTH_PIXELS = 30
const ganttChartWidth = computed(() => {
let ganttContainerReference = ganttContainer?.value
const ganttContainerReference = ganttContainer?.value
const ganttContainerWidth = ganttContainerReference ? (ganttContainerReference['clientWidth'] ?? 0) : 0
const dateDiff = Math.floor((dateToDate.value.valueOf() - dateFromDate.value.valueOf()) / MILLISECONDS_A_DAY)
const calculatedWidth = dateDiff * DAY_WIDTH_PIXELS
return (calculatedWidth > ganttContainerWidth) ? calculatedWidth + "px" : "100%"
return (calculatedWidth > ganttContainerWidth) ? calculatedWidth + 'px' : '100%'
})