fix(columns): prevent crash when switching to account with no columns

This commit is contained in:
Fernando López Guevara
2025-07-17 19:09:10 -03:00
parent c421f8f8ff
commit 508d8dc0ba

View File

@@ -191,6 +191,9 @@ impl Columns {
#[inline]
pub fn column_mut(&mut self, ind: usize) -> &mut Column {
if self.columns.is_empty() {
self.new_column_picker();
}
&mut self.columns[ind]
}