Skip to content

Commit 17d040b

Browse files
committed
chore: fix for app detail environment
1 parent 51b054b commit 17d040b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/components/app/details/appDetails/AppDetails.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -914,14 +914,10 @@ export const EnvSelector = ({
914914
if (found) {
915915
found.options.push(Option)
916916
} else {
917-
if (key.length > 0) {
918-
acc.push({
919-
label: key,
920-
options: [Option],
921-
})
922-
} else {
923-
acc.push(Option)
924-
}
917+
acc.push({
918+
label: key,
919+
options: [Option],
920+
})
925921
}
926922

927923
return acc

0 commit comments

Comments
 (0)