Skip to content

Commit c0607b1

Browse files
committed
switch -> if
1 parent 7a3674a commit c0607b1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

site/src/modules/resources/AgentDevcontainerCard.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({
6767
const appSections = (subAgent && organizeAgentApps(subAgent.apps)) || [];
6868
const displayApps =
6969
subAgent?.display_apps.filter((app) => {
70-
switch (true) {
71-
case browser_only:
72-
return ["web_terminal", "port_forwarding_helper"].includes(app);
73-
default:
74-
return true;
70+
if (browser_only) {
71+
return ["web_terminal", "port_forwarding_helper"].includes(app);
7572
}
73+
return true;
7674
}) || [];
7775
const showVSCode =
7876
devcontainer.container &&

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy