mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
Spinner spinning forever issue (#185)
* Spinner spinning forever issue * fix mistake Co-authored-by: EgleHelms <e.helms@cognigy.com>
This commit is contained in:
@@ -93,7 +93,7 @@ export const Alerts = () => {
|
||||
</section>
|
||||
<Section {...(hasLength(alerts) && { slim: true })}>
|
||||
<div className="list">
|
||||
{!hasValue(alerts) ? (
|
||||
{!hasValue(alerts) && hasLength(accounts) ? (
|
||||
<Spinner />
|
||||
) : hasLength(alerts) ? (
|
||||
alerts.map((alert) => (
|
||||
|
||||
@@ -106,7 +106,7 @@ export const Applications = () => {
|
||||
</section>
|
||||
<Section {...(hasLength(filteredApplications) && { slim: true })}>
|
||||
<div className="list">
|
||||
{!hasValue(applications) ? (
|
||||
{!hasValue(applications) && hasLength(accounts) ? (
|
||||
<Spinner />
|
||||
) : hasLength(filteredApplications) ? (
|
||||
filteredApplications.map((application) => {
|
||||
|
||||
@@ -146,7 +146,7 @@ export const Carriers = () => {
|
||||
</section>
|
||||
<Section {...(hasLength(filteredCarriers) && { slim: true })}>
|
||||
<div className="list">
|
||||
{!hasValue(carriers) ? (
|
||||
{!hasValue(carriers) && hasLength(accounts) ? (
|
||||
<Spinner />
|
||||
) : hasLength(filteredCarriers) ? (
|
||||
filteredCarriers.map((carrier) => (
|
||||
|
||||
@@ -122,7 +122,7 @@ export const RecentCalls = () => {
|
||||
</section>
|
||||
<Section {...(hasLength(calls) && { slim: true })}>
|
||||
<div className="list">
|
||||
{!hasValue(calls) ? (
|
||||
{!hasValue(calls) && hasLength(accounts) ? (
|
||||
<Spinner />
|
||||
) : hasLength(calls) ? (
|
||||
calls.map((call) => <DetailsItem key={call.call_sid} call={call} />)
|
||||
|
||||
@@ -108,7 +108,7 @@ export const SpeechServices = () => {
|
||||
</section>
|
||||
<Section {...(hasLength(filteredCredentials) && { slim: true })}>
|
||||
<div className="list">
|
||||
{!hasValue(filteredCredentials) ? (
|
||||
{!hasValue(filteredCredentials) && hasLength(accounts) ? (
|
||||
<Spinner />
|
||||
) : hasLength(filteredCredentials) ? (
|
||||
filteredCredentials.map((credential) => {
|
||||
|
||||
@@ -113,7 +113,7 @@ export const Users = () => {
|
||||
<div>Scope</div>
|
||||
<div> </div>
|
||||
</div>
|
||||
{!hasValue(users) ? (
|
||||
{!hasValue(users) && hasLength(accounts) ? (
|
||||
<Spinner />
|
||||
) : hasLength(filteredUsers) ? (
|
||||
filteredUsers.map((user) => {
|
||||
|
||||
Reference in New Issue
Block a user