From 12a514bcc90cfc4ba6ed56d447360b965807c755 Mon Sep 17 00:00:00 2001
From: Hugo Zigha <hugo.zigha@al-enterprise.com>
Date: Mon, 20 Sep 2021 10:38:27 +0200
Subject: [PATCH] TT#141400 Issue - PBXConfiguration - SoundSet - Can not see
 (first) SoundSet after creation

Change-Id: I6feba08b7c58efc4324330192d7646e33887aba2
---
 src/store/pbx-soundsets.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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) => {