TT#141400 Issue - PBXConfiguration - SoundSet - Can not see (first) SoundSet after creation

Change-Id: I6feba08b7c58efc4324330192d7646e33887aba2
mr10.1.1
Hugo Zigha 4 years ago
parent bbe230a011
commit 12a514bcc9

@ -4,6 +4,7 @@ import {
CreationState, CreationState,
RequestState RequestState
} from './common' } from './common'
import { import {
getSoundSetList, getSoundSetList,
createSoundSet, createSoundSet,
@ -314,10 +315,11 @@ export default {
loadSoundSetList (context, options) { loadSoundSetList (context, options) {
return new Promise((resolve) => { return new Promise((resolve) => {
const listVisible = _.get(options, 'listVisible', false) const listVisible = _.get(options, 'listVisible', false)
const page = _.get(options, 'page', context.state.soundSetListCurrentPage)
context.commit('soundSetListRequesting', { context.commit('soundSetListRequesting', {
listVisible: listVisible listVisible: listVisible
}) })
let page = _.get(options, 'page', context.state.soundSetListCurrentPage)
page = (page === null) ? 1 : page
getSoundSetList({ getSoundSetList({
page: page page: page
}).then((soundSetList) => { }).then((soundSetList) => {

Loading…
Cancel
Save