Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the error while editing admin profile #2282

4 changes: 2 additions & 2 deletions src/GraphQl/Queries/Queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ export const EVENT_FEEDBACKS = gql`

// Query to take the Organization with data
export const ORGANIZATIONS_LIST = gql`
query Organizations($id: ID!) {
organizations(id: $id) {
query OrganizationsByCreator($creatorId: ID!) {
organizations(where: { creatorId: $creatorId }) {
ARYANSHAH1567 marked this conversation as resolved.
Show resolved Hide resolved
_id
image
creator {
Expand Down
2 changes: 1 addition & 1 deletion src/components/LeftDrawerOrg/LeftDrawerOrg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const leftDrawerOrg = ({
| undefined;
loading: boolean;
} = useQuery(ORGANIZATIONS_LIST, {
variables: { id: orgId },
variables: {creatorId: orgId },
});

// Set organization data when query data is available
Expand Down
Loading