Skip to content

Commit

Permalink
fix: convert number offset to string (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj authored Jun 21, 2021
1 parent fd128c5 commit a6596ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/arrayConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const PREFIX = 'arrayconnection:';
* Creates the cursor string from an offset.
*/
export function offsetToCursor(offset: number): ConnectionCursor {
return base64(PREFIX + offset);
return base64(PREFIX + offset.toString());
}

/**
Expand Down

0 comments on commit a6596ae

Please sign in to comment.