Skip to content

Commit 72d660f

Browse files
authored
fix: number cell update flashes with old content (#7605)
1 parent 46532a8 commit 72d660f

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

frontend/appflowy_flutter/lib/plugins/database/application/cell/bloc/number_cell_bloc.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,6 @@ class NumberCellBloc extends Bloc<NumberCellEvent, NumberCellState> {
4747
if (state.content != text) {
4848
emit(state.copyWith(content: text));
4949
await cellController.saveCellData(text);
50-
51-
// If the input content is "abc" that can't parsered as number then the data stored in the backend will be an empty string.
52-
// So for every cell data that will be formatted in the backend.
53-
// It needs to get the formatted data after saving.
54-
add(
55-
NumberCellEvent.didReceiveCellUpdate(
56-
cellController.getCellData(),
57-
),
58-
);
5950
}
6051
},
6152
);

0 commit comments

Comments
 (0)