Skip to content

Commit

Permalink
chore: fix number parse (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy authored Dec 24, 2024
1 parent c45a212 commit dd8a1d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collab-database/src/template/number_parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ impl AsRef<str> for NumberCellData {

impl From<&Cell> for NumberCellData {
fn from(cell: &Cell) -> Self {
Self(cell.get_as(CELL_DATA).unwrap_or_default())
let s = cell.get_as::<String>(CELL_DATA).unwrap_or_default();
Self(s)
}
}

Expand Down

0 comments on commit dd8a1d1

Please sign in to comment.