Spinner spinning forever issue (#185)

* Spinner spinning forever issue

* fix mistake

Co-authored-by: EgleHelms <e.helms@cognigy.com>
This commit is contained in:
EgleH
2023-01-26 15:28:53 +01:00
committed by GitHub
parent 2a27730883
commit 4498f30beb
6 changed files with 6 additions and 6 deletions
@@ -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>&nbsp;</div>
</div>
{!hasValue(users) ? (
{!hasValue(users) && hasLength(accounts) ? (
<Spinner />
) : hasLength(filteredUsers) ? (
filteredUsers.map((user) => {