Fix issue #57 (#58)

* fix issue #57

* fix further

* fix to phone page
This commit is contained in:
Lê Hàn Minh Khang authored and GitHub committed 2022-05-24 08:38:13 -04:00
1 parent bb335d0838
commit 4912758120
2 files changed
+4 -5

No files matched your search

+4 -4
View File
@@ -63,7 +63,7 @@ const PhoneNumberForm = props => {
const sipTrunksPromise = axios({
method: 'get',
baseURL: APP_API_BASE_URL,
url: '/VoipCarriers',
url: `ServiceProviders/${currentServiceProvider}/VoipCarriers`,
headers: {
Authorization: `Bearer ${localStorage.getItem('token')}`,
},
@@ -71,7 +71,7 @@ const PhoneNumberForm = props => {
const accountsPromise = axios({
method: 'get',
baseURL: APP_API_BASE_URL,
url: '/Accounts',
url: `ServiceProviders/${currentServiceProvider}/Accounts`,
headers: {
Authorization: `Bearer ${localStorage.getItem('token')}`,
},
@@ -79,7 +79,7 @@ const PhoneNumberForm = props => {
const applicationsPromise = axios({
method: 'get',
baseURL: APP_API_BASE_URL,
url: '/Applications',
url: `ServiceProviders/${currentServiceProvider}/Applications`,
headers: {
Authorization: `Bearer ${localStorage.getItem('token')}`,
},
@@ -87,7 +87,7 @@ const PhoneNumberForm = props => {
const phoneNumbersPromise = axios({
method: 'get',
baseURL: APP_API_BASE_URL,
url: '/PhoneNumbers',
url: `ServiceProviders/${currentServiceProvider}/PhoneNumbers`,
headers: {
Authorization: `Bearer ${localStorage.getItem('token')}`,
},
@@ -104,7 +104,6 @@ const CarriersList = () => {
return;
}
if(!currentServiceProvider) return [];
if (!accountList.length) return [];
// Get all SIP trunks
const trunkResults = await axios({
method: 'get',