Skip to content

Commit f042e7d

Browse files
committed
Small change to gql query for version endpoint
1 parent 5e519da commit f042e7d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

packages/orchestrator-ui-components/src/components/WfoPageTemplate/WfoPageHeader/WfoHamburgerMenu.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ export const WfoHamburgerMenu = ({}) => {
5858
return versionsArr;
5959
}
6060

61-
const orchApiVersions = data.versions.applicationVersions.map(
62-
(item) => {
63-
return {
64-
name: item,
65-
icon: <WfoSquareStack3dStack />,
66-
};
67-
},
68-
);
61+
const orchApiVersions = data.version.applicationVersions.map((item) => {
62+
return {
63+
name: item,
64+
icon: <WfoSquareStack3dStack />,
65+
};
66+
});
6967

7068
// orchestrator-ui-components library version + versions returned from orchestrator api
7169
return versionsArr.concat(orchApiVersions);

packages/orchestrator-ui-components/src/rtk/endpoints/versions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { orchestratorApi } from '../api';
22

33
const versionsQuery = `
44
query Versions {
5-
versions {
5+
version {
66
applicationVersions
77
}
88
}
99
`;
1010

1111
export type VersionsResponse = {
12-
versions: {
12+
version: {
1313
applicationVersions: [string];
1414
};
1515
};

0 commit comments

Comments
 (0)