Fixed issue where table rules were not applied

This commit is contained in:
2026-02-07 23:03:14 +01:00
parent 6160e91665
commit fc38196ad9
2 changed files with 7 additions and 7 deletions

View File

@@ -80,10 +80,10 @@ class DataGridFormattingEditor(DslEditor):
cells_rules[cell_id].append(rule)
elif isinstance(scope, TableScope):
# Validate table name matches current grid
if scope.table == self._parent._settings.name:
if scope.table == self._parent.get_table_name():
table_rules.append(rule)
else:
logger.warning(f"Table name '{scope.table}' does not match grid name '{self._parent._settings.name}', skipping rules")
logger.warning(f"Table name '{scope.table}' does not match grid name '{self._parent.get_table_name()}', skipping rules")
elif isinstance(scope, TablesScope):
tables_rules.append(rule)