move ensure_column_defs calls up to avoid ensure_column_defs call if run is not found

This commit is contained in:
2026-06-09 18:09:51 +02:00
parent ef0c2b6b7d
commit 38bee8a26f
+2 -2
View File
@@ -26,8 +26,8 @@ class aggridx(ui.aggrid):
append any missing columns on the right side of the table
this operation maintains the current view on the data
"""
self.ensure_column_defs(row)
row_index = self.row_id_to_index(row_id)
self.ensure_column_defs(row)
self.set_row_data(row, row_index)
def update_row(self, row_id, row):
@@ -36,8 +36,8 @@ class aggridx(ui.aggrid):
append any missing columns on the right side of the table
this operation maintains the current view on the data
"""
self.ensure_column_defs(row)
row_index = self.row_id_to_index(row_id)
self.ensure_column_defs(row)
self.update_row_data(row, row_index)
def append_row(self, row):