Skip to content

Commit a6596ae

Browse files
authored
fix: convert number offset to string (#342)
1 parent fd128c5 commit a6596ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection/arrayConnection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const PREFIX = 'arrayconnection:';
121121
* Creates the cursor string from an offset.
122122
*/
123123
export function offsetToCursor(offset: number): ConnectionCursor {
124-
return base64(PREFIX + offset);
124+
return base64(PREFIX + offset.toString());
125125
}
126126

127127
/**

0 commit comments

Comments
 (0)