fix: Explicitly type label as string in typeBodyTemplate

This commit is contained in:
dahoud
2025-10-16 01:34:15 +00:00
parent 6f0c2c09c8
commit 0c84ef7874

View File

@@ -337,7 +337,7 @@ const ChiffreAffairesPage = () => {
const typeBodyTemplate = (rowData: CADetail) => { const typeBodyTemplate = (rowData: CADetail) => {
let severity: "success" | "warning" | "danger" | "info" = 'info'; let severity: "success" | "warning" | "danger" | "info" = 'info';
let label = rowData.type; let label: string = rowData.type;
switch (rowData.type) { switch (rowData.type) {
case 'FACTURE': case 'FACTURE':