diff --git a/packages/frontend/package.json b/packages/frontend/package.json index bb48cc4..d1fb6f3 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@monorepo/frontend", - "version": "1.1.1", + "version": "1.1.2", "private": true, "scripts": { "dev": "next dev", diff --git a/packages/frontend/src/graphql/queries.ts b/packages/frontend/src/graphql/queries.ts index efcb542..9b1e535 100644 --- a/packages/frontend/src/graphql/queries.ts +++ b/packages/frontend/src/graphql/queries.ts @@ -52,7 +52,7 @@ export const getUserByLogin = gql` `; const allRole = ` - getAllRole { + getAllRole(data: {pageSize: 50}) { rows { id name @@ -72,7 +72,7 @@ const allOffice = ` `; const allTeam = ` - getAllTeam { + getAllTeam(data: {pageSize: 50}) { rows { id name diff --git a/packages/frontend/src/pages/profile/office-details.tsx b/packages/frontend/src/pages/profile/office-details.tsx index fdef7a6..1131f4c 100644 --- a/packages/frontend/src/pages/profile/office-details.tsx +++ b/packages/frontend/src/pages/profile/office-details.tsx @@ -30,10 +30,10 @@ type RequestProps = { }; type RequestGetStartedProps = { - departments: BasicQuery[]; - offices: Office[]; - roles: BasicQuery[]; - teams: Team[]; + departments: { rows: BasicQuery[] }; + offices: { rows: Office[] }; + roles: { rows: BasicQuery[] }; + teams: { rows: Team[] }; }; interface GetStartedProps extends RequestGetStartedProps { @@ -95,10 +95,10 @@ const GetStarted = ({