mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: hide field & add field tests (#1340)
Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
parent
aa8addf4a3
commit
87247ccd9d
@ -16,7 +16,8 @@ class _GridFieldNotifier extends ChangeNotifier {
|
||||
List<GridFieldContext> _fieldContexts = [];
|
||||
|
||||
set fieldContexts(List<GridFieldContext> fieldContexts) {
|
||||
_fieldContexts = fieldContexts;
|
||||
_fieldContexts =
|
||||
fieldContexts.where((element) => element.visibility).toList();
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
@ -1,12 +1,10 @@
|
||||
use crate::editor::document::Document;
|
||||
|
||||
use bytes::Bytes;
|
||||
use flowy_error::FlowyResult;
|
||||
use lib_ot::core::{
|
||||
AttributeHashMap, Body, Changeset, Extension, NodeData, NodeId, NodeOperation, NodeTree, NodeTreeContext, Path,
|
||||
Selection, Transaction,
|
||||
};
|
||||
|
||||
use lib_ot::text_delta::DeltaTextOperations;
|
||||
use serde::de::{self, MapAccess, Unexpected, Visitor};
|
||||
use serde::ser::{SerializeMap, SerializeSeq};
|
||||
|
@ -474,6 +474,7 @@ impl FieldChangesetParams {
|
||||
|| self.frozen.is_some()
|
||||
|| self.type_option_data.is_some()
|
||||
|| self.frozen.is_some()
|
||||
|| self.visibility.is_some()
|
||||
|| self.width.is_some()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user