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 />}
|
||||
<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}
|
||||
|
|
Loading…
Reference in New Issue