Skip to content

Commit

Permalink
Merge pull request #783 from bounswe/fix-annotation-index-zero-error
Browse files Browse the repository at this point in the history
if start/end index is 0, post 1
  • Loading branch information
simarahmtkhy authored Dec 25, 2023
2 parents 0b8206c + a38de44 commit b1f1801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/mobile/lib/services/pollRequestService.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class PollRequestService {
"target": {
"source": "http://34.105.66.254:1923/$poll_id",
"selector": {
"end": annotation.indices[1],
"end": annotation.indices[1] == 0 ? 1 : annotation.indices[1],
"type": "TextPositionSelector",
"start": annotation.indices[0]
"start": annotation.indices[0] == 0 ? 1 : annotation.indices[0]
}
},
"creator": creator_id
Expand Down

0 comments on commit b1f1801

Please sign in to comment.