fix: Explicitly type label as string in typeBodyTemplate
This commit is contained in:
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user