Skip to content

Commit e55ab71

Browse files
committed
Console: Filter graphql apis properly in dropdown
1 parent 0f1d98c commit e55ab71

File tree

1 file changed

+3
-1
lines changed
  • packages/console/src/App/Stage/GraphQL

1 file changed

+3
-1
lines changed

packages/console/src/App/Stage/GraphQL/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export function Explorer() {
8585
<HeaderSwitcherLabel>
8686
{stack.info.StackName}
8787
</HeaderSwitcherLabel>
88-
{stack.constructs.byType.Api?.map((item) => (
88+
{stack.constructs.byType.Api?.filter(
89+
(item) => item.data.graphql
90+
).map((item) => (
8991
<HeaderSwitcherItem
9092
key={item.stack + item.addr}
9193
to={`../${item.stack}/${item.addr}`}

0 commit comments

Comments
 (0)