diff --git a/src/store/pbx-soundsets.js b/src/store/pbx-soundsets.js index 83e37be0..491638d0 100644 --- a/src/store/pbx-soundsets.js +++ b/src/store/pbx-soundsets.js @@ -4,6 +4,7 @@ import { CreationState, RequestState } from './common' + import { getSoundSetList, createSoundSet, @@ -314,10 +315,11 @@ export default { loadSoundSetList (context, options) { return new Promise((resolve) => { const listVisible = _.get(options, 'listVisible', false) - const page = _.get(options, 'page', context.state.soundSetListCurrentPage) context.commit('soundSetListRequesting', { listVisible: listVisible }) + let page = _.get(options, 'page', context.state.soundSetListCurrentPage) + page = (page === null) ? 1 : page getSoundSetList({ page: page }).then((soundSetList) => {