mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-11-16 00:56:53 +01:00
refactor: show loading state only on initial load
This commit is contained in:
1 parent
a507a3daed
commit
9ba51cd4e3
1 file changed
+1
-1
@@ -17,7 +17,7 @@ export function GroupBadges({
|
||||
groups,
|
||||
isLoading,
|
||||
}: GroupBadgesProps) {
|
||||
if (isLoading) {
|
||||
if (isLoading && !groups.length) {
|
||||
return (
|
||||
<div className="flex flex-wrap gap-2 mb-4">
|
||||
<div className="flex items-center gap-2 px-4.5 py-1.5 text-xs">
|
||||
|
||||
Reference in new issue
Block a user