refactor(ui): collapse grouped session label guard

This commit is contained in:
Altay 2026-03-14 14:19:48 +03:00
parent 77fc999113
commit 6ec77bfcc4
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -691,12 +691,8 @@ function resolveSessionScopedOptionLabel(
}
const label = row.label?.trim() || "";
if (label && label !== key) {
return resolveSessionDisplayName(key, row);
}
const displayName = row.displayName?.trim() || "";
if (displayName && displayName !== key) {
if ((label && label !== key) || (displayName && displayName !== key)) {
return resolveSessionDisplayName(key, row);
}