Skip to content

Commit 1974691

Browse files
authored
Merge pull request #7 from jtlabsio/v1.6.1
fixing minor issue with querystring generation when pagination was no…
2 parents f4acc2d + 930d8ce commit 1974691

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

options.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ func (o Options) Prev() string {
9595

9696
// String returns a querystring for the current page
9797
func (o Options) String() string {
98+
if o.Page == nil || o.ps == nil {
99+
return buildQuerystring(o.Filter, o.Fields, "", o.Sort)
100+
}
101+
98102
return buildQuerystring(o.Filter, o.Fields, o.ps.Current(o.Page), o.Sort)
99103
}
100104

0 commit comments

Comments
 (0)