Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tavern/internal/www/build/asset-manifest.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tavern/internal/www/build/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions tavern/internal/www/src/pages/shellv2/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ export const GET_SHELL_ACTIVE_USERS = gql`
node(id: $id) {
... on Shell {
activeUsers {
id
name
edges {
node {
id
name
}
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion tavern/internal/www/src/pages/shellv2/hooks/useShellData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export const useShellData = (shellId: string | undefined) => {
}
}, [portalData]);

const activeUsers = activeUsersData?.node?.activeUsers?.edges?.map((edge: any) => edge.node) || [];

return {
loading,
error,
Expand All @@ -59,6 +61,6 @@ export const useShellData = (shellId: string | undefined) => {
portalData,
portalId,
setPortalId,
activeUsers: activeUsersData?.node?.activeUsers || []
activeUsers
};
};
Loading