mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: fix card refresh issue
This commit is contained in:
@ -317,9 +317,6 @@ class GroupControllerDelegateImpl extends GroupControllerDelegate {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void updateRow(String groupId, RowPB row) {
|
void updateRow(String groupId, RowPB row) {
|
||||||
// workaround: fix the board card reload timing issue.
|
controller.updateColumnItem(groupId, BoardColumnItem(row: row));
|
||||||
Future.delayed(const Duration(milliseconds: 300), () {
|
|
||||||
controller.updateColumnItem(groupId, BoardColumnItem(row: row));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,6 @@ class BoardSelectOptionCellState with _$BoardSelectOptionCellState {
|
|||||||
factory BoardSelectOptionCellState.initial(
|
factory BoardSelectOptionCellState.initial(
|
||||||
GridSelectOptionCellController context) {
|
GridSelectOptionCellController context) {
|
||||||
final data = context.getCellData();
|
final data = context.getCellData();
|
||||||
|
|
||||||
return BoardSelectOptionCellState(
|
return BoardSelectOptionCellState(
|
||||||
selectedOptions: data?.selectOptions ?? [],
|
selectedOptions: data?.selectOptions ?? [],
|
||||||
);
|
);
|
||||||
|
@ -190,7 +190,10 @@ class IGridCellController<T, D> extends Equatable {
|
|||||||
/// cell display: $12
|
/// cell display: $12
|
||||||
_cellListener?.start(onCellChanged: (result) {
|
_cellListener?.start(onCellChanged: (result) {
|
||||||
result.fold(
|
result.fold(
|
||||||
(_) => _loadData(),
|
(_) {
|
||||||
|
_cellsCache.remove(fieldId);
|
||||||
|
_loadData();
|
||||||
|
},
|
||||||
(err) => Log.error(err),
|
(err) => Log.error(err),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -269,7 +269,7 @@ pub(crate) async fn create_table_row_handler(
|
|||||||
data_result(row)
|
data_result(row)
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[tracing::instrument(level = "debug", skip_all, err)]
|
#[tracing::instrument(level = "trace", skip_all, err)]
|
||||||
pub(crate) async fn get_cell_handler(
|
pub(crate) async fn get_cell_handler(
|
||||||
data: Data<GridCellIdPB>,
|
data: Data<GridCellIdPB>,
|
||||||
manager: AppData<Arc<GridManager>>,
|
manager: AppData<Arc<GridManager>>,
|
||||||
|
Reference in New Issue
Block a user