Skip to content

Commit 0abf974

Browse files
authored
fix: _id_to_index initialize (#35)
1 parent f0d222d commit 0abf974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docarray/array/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
self._rebuild_id2offset()
4848
elif isinstance(docs, DocumentArray):
4949
self._data = docs._data
50-
self._id_to_index = docs._id_to_index
50+
self._id_to_index = docs._id2offset
5151
else:
5252
self._data = list(docs)
5353
self._rebuild_id2offset()

0 commit comments

Comments
 (0)