fix: if isExcludedWeeks or weeks is null then pass condition
This commit is contained in:
		| @@ -73,9 +73,12 @@ export class TableComponent implements OnChanges { | |||||||
|           x.dayOfWeek === k && |           x.dayOfWeek === k && | ||||||
|           x.isEven === (this.currentWeek % 2 === 0) && |           x.isEven === (this.currentWeek % 2 === 0) && | ||||||
|           ( |           ( | ||||||
|             (x.isExcludedWeeks && (!x.weeks || !x.weeks.includes(this.currentWeek))) || |             x.isExcludedWeeks === undefined || | ||||||
|             (!x.isExcludedWeeks && (!x.weeks || x.weeks.includes(this.currentWeek))) |             x.weeks === undefined || | ||||||
|           )); |             (x.isExcludedWeeks && (!x.weeks.includes(this.currentWeek))) || | ||||||
|  |             (!x.isExcludedWeeks && (x.weeks.includes(this.currentWeek))) | ||||||
|  |           ) | ||||||
|  |         ); | ||||||
|       } |       } | ||||||
|  |  | ||||||
|       tableData.push(convertedData); |       tableData.push(convertedData); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user