move ensure_column_defs calls up to avoid ensure_column_defs call if run is not found
This commit is contained in:
+2
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user