[FIX] BASE: Employee chart issue when unselecting all charts on first load

This commit is contained in:
Horilla
2024-04-09 16:06:53 +05:30
parent f35627ac65
commit 5ff58ec288
2 changed files with 3 additions and 3 deletions

View File

@@ -1364,7 +1364,7 @@ class DashboardEmployeeCharts(HorillaModel):
from employee.models import Employee
employee = models.ForeignKey(Employee, on_delete=models.CASCADE)
charts = models.JSONField(blank=True, null=True)
charts = models.JSONField(default=list, blank=True, null=True)
def __str__(self):
return f"{self.employee} - charts"