mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: insert without remove field on FieldCache
This commit is contained in:
parent
ea654b602c
commit
f3c82f5c30
@ -103,7 +103,6 @@ class GridFieldCache {
|
||||
final List<Field> fields = _fieldNotifier.fields;
|
||||
for (final indexField in insertedFields) {
|
||||
if (fields.length > indexField.index) {
|
||||
fields.removeAt(indexField.index);
|
||||
fields.insert(indexField.index, indexField.field_1);
|
||||
} else {
|
||||
fields.add(indexField.field_1);
|
||||
|
Loading…
Reference in New Issue
Block a user