fix: skeleton loader issue in settings/api-keys (#4634)
* fix: skeleton loader issue * fix: simplify logic Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
1 parent
341c39cb6b
commit
10d3a126aa
1 file changed
+2
-2
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user