Skip to content

Commit

Permalink
Update paginationMachine.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrybinski authored Nov 2, 2021
1 parent 582c6b3 commit 346bd69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paginationMachine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assign, createMachine, choose } from './deps.js';
import { assign, createMachine, actions } from './deps.js';
const paginationMachine = createMachine({
id: 'pagination',
initial: 'awaitingTotalPages',
Expand All @@ -8,7 +8,7 @@ const paginationMachine = createMachine({
on: {
UPDATE_TOTAL_PAGES: {
cond: 'newTotalPagesIsValidValue',
actions: choose([{
actions: actions.choose([{
cond: 'currentPageIsAboveNewTotalPages',
actions: ['assignTotalPagesToContext', 'goToFirstPage']
}, {
Expand Down

0 comments on commit 346bd69

Please sign in to comment.