fix: skeleton loader issue in settings/api-keys (#4634)

* fix: skeleton loader issue

* fix: simplify logic

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/4612/head^2
Nafees Nazik 2022-09-22 10:59:15 +05:30 committed by GitHub
parent 341c39cb6b
commit 10d3a126aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,10 +45,10 @@ const ApiKeysView = () => {
<>
{isLoading && <SkeletonLoader />}
<div>
{data?.length ? (
{isLoading ? null : data?.length ? (
<>
<div className="mt-6 mb-8 rounded-md border">
{data?.map((apiKey, index) => (
{data.map((apiKey, index) => (
<ApiKeyListItem
key={apiKey.id}
apiKey={apiKey}