Skip to content

Commit 8a609dc

Browse files
[SuperEditor] - Fix: Document.firstOrNull was actually returning lastOrNull (Resolves #2187) (#2192)
1 parent b0f6974 commit 8a609dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

super_editor/lib/src/core/editor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ class MutableDocument with Iterable<DocumentNode> implements Document, Editable
10871087
Iterator<DocumentNode> get iterator => _nodes.iterator;
10881088

10891089
@override
1090-
DocumentNode? get firstOrNull => _nodes.lastOrNull;
1090+
DocumentNode? get firstOrNull => _nodes.firstOrNull;
10911091

10921092
@override
10931093
DocumentNode? get lastOrNull => _nodes.lastOrNull;

0 commit comments

Comments
 (0)