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
parent
341c39cb6b
commit
10d3a126aa
|
@ -45,10 +45,10 @@ const ApiKeysView = () => {
|
||||||
<>
|
<>
|
||||||
{isLoading && <SkeletonLoader />}
|
{isLoading && <SkeletonLoader />}
|
||||||
<div>
|
<div>
|
||||||
{data?.length ? (
|
{isLoading ? null : data?.length ? (
|
||||||
<>
|
<>
|
||||||
<div className="mt-6 mb-8 rounded-md border">
|
<div className="mt-6 mb-8 rounded-md border">
|
||||||
{data?.map((apiKey, index) => (
|
{data.map((apiKey, index) => (
|
||||||
<ApiKeyListItem
|
<ApiKeyListItem
|
||||||
key={apiKey.id}
|
key={apiKey.id}
|
||||||
apiKey={apiKey}
|
apiKey={apiKey}
|
||||||
|
|
Loading…
Reference in New Issue