From 75b42f4bafb243c21e4741d796aa92e5203e0961 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Sat, 31 Jan 2026 01:33:26 +0100 Subject: [PATCH] Correction bug style cell --- src/figures.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/figures.py b/src/figures.py index 0fd9210..2562093 100644 --- a/src/figures.py +++ b/src/figures.py @@ -308,9 +308,10 @@ class DataTable(dash_table.DataTable): style_cell_conditional = ( style_cell_conditional or [] ) + style_cell_conditional_common - style_cell.update(style_cell_common) if isinstance( - style_cell, dict - ) else style_cell_common + if style_cell: + style_cell.update(style_cell_common) + else: + style_cell = style_cell_common style_header = style_cell # Initialisation de la classe parente avec les arguments