Skip to content

Commit fcf7e7e

Browse files
Merge pull request #19 from mehedijaman/main
Feature(pagination): add fallback values for paginator props
2 parents d5ede87 + bdaca2c commit fcf7e7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stubs/page-stub/Index.stub

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575

7676
<AppPaginator
7777
:links="{{ resourceNameCamelPlural }}.links"
78-
:from="{{ resourceNameCamelPlural }}.from"
79-
:to="{{ resourceNameCamelPlural }}.to"
80-
:total="{{ resourceNameCamelPlural }}.total"
78+
:from="{{ resourceNameCamelPlural }}.from || 0"
79+
:to="{{ resourceNameCamelPlural }}.to || 0"
80+
:total="{{ resourceNameCamelPlural }}.total || 0"
8181
class="mt-4 justify-center"
8282
></AppPaginator>
8383

0 commit comments

Comments
 (0)