Skip to content

Commit c374bff

Browse files
committed
chore: revert index logic
1 parent 08184bf commit c374bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase_database/firebase_database_platform_interface/lib/src/method_channel/method_channel_data_snapshot.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ List<String> _childKeysFromValue(Object? value) {
104104
} else if (value is List) {
105105
childChildKeys = List<String>.generate(
106106
value.length,
107-
(int index) => '$index',
107+
(int index) => '${index - 1}',
108108
);
109109
}
110110
return childChildKeys;

0 commit comments

Comments
 (0)