Prevent duplicate server display during profile transitions
Build and Deploy Gateway / build-and-push (push) Successful in 26s
Build and Deploy Gateway / deploy (push) Successful in 6s

This commit is contained in:
2026-08-11 08:02:17 +03:00
parent 9ad0307333
commit 444f26c401
8 changed files with 33 additions and 31 deletions
@@ -29,6 +29,7 @@ interface ServerPickerRenderState {
disabled: boolean;
leaving: boolean;
revealVersion: number;
anchorServerId: string;
}
interface SubscriptionFeatureOptions {
@@ -464,9 +465,11 @@ function ProfileGroup({
{localStatus && <div className="client-profile-local-status" role="status">{localStatus}</div>}
{!expanded && !closing && visibleServer && <button
{visibleServer && <button
className="client-profile-selected-server"
type="button"
aria-expanded={expanded}
aria-controls={`client-profile-${profile.id}`}
onClick={() => feature.toggleProfile(profile.id)}
>
<span aria-hidden="true" />
@@ -486,6 +489,7 @@ function ProfileGroup({
disabled: controlsBlocked,
leaving: false,
revealVersion: feature.revealVersions[profile.id] || 0,
anchorServerId: visibleServer?.id || '',
})}
</div>
</div>}