Use more defined node name for organization
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -22,7 +22,7 @@ import { CreatePeoplePageCreatePeopleMutation } from "./__generated__/CreatePeop
|
|||||||
|
|
||||||
const createPeoplePageQuery = graphql`
|
const createPeoplePageQuery = graphql`
|
||||||
query CreatePeoplePageQuery {
|
query CreatePeoplePageQuery {
|
||||||
node(id: "AZSfP_xAcAC5IAAAAAAltA") {
|
currentOrganization: node(id: "AZSfP_xAcAC5IAAAAAAltA") {
|
||||||
id
|
id
|
||||||
... on Organization {
|
... on Organization {
|
||||||
name
|
name
|
||||||
@@ -107,13 +107,13 @@ function CreatePeoplePageContent({
|
|||||||
|
|
||||||
const handleSubmit = (e: React.FormEvent) => {
|
const handleSubmit = (e: React.FormEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const connecttionId = ConnectionHandler.getConnectionID(data.node.id, "PeopleListPageQuery_peoples");
|
const connecttionId = ConnectionHandler.getConnectionID(data.currentOrganization.id, "PeopleListPageQuery_peoples");
|
||||||
|
|
||||||
commit({
|
commit({
|
||||||
variables: {
|
variables: {
|
||||||
connections: [connecttionId],
|
connections: [connecttionId],
|
||||||
input: {
|
input: {
|
||||||
organizationId: data.node.id,
|
organizationId: data.currentOrganization.id,
|
||||||
fullName: formData.fullName,
|
fullName: formData.fullName,
|
||||||
primaryEmailAddress: formData.primaryEmailAddress,
|
primaryEmailAddress: formData.primaryEmailAddress,
|
||||||
additionalEmailAddresses: formData.additionalEmailAddresses,
|
additionalEmailAddresses: formData.additionalEmailAddresses,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @generated SignedSource<<1440fead35c1cf239edc5574dcdf9dc3>>
|
* @generated SignedSource<<90c9055cb59db9172002bc02e6e9429d>>
|
||||||
* @lightSyntaxTransform
|
* @lightSyntaxTransform
|
||||||
* @nogrep
|
* @nogrep
|
||||||
*/
|
*/
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
import { ConcreteRequest } from 'relay-runtime';
|
import { ConcreteRequest } from 'relay-runtime';
|
||||||
export type CreatePeoplePageQuery$variables = Record<PropertyKey, never>;
|
export type CreatePeoplePageQuery$variables = Record<PropertyKey, never>;
|
||||||
export type CreatePeoplePageQuery$data = {
|
export type CreatePeoplePageQuery$data = {
|
||||||
readonly node: {
|
readonly currentOrganization: {
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
readonly name?: string;
|
readonly name?: string;
|
||||||
};
|
};
|
||||||
@@ -58,7 +58,7 @@ return {
|
|||||||
"name": "CreatePeoplePageQuery",
|
"name": "CreatePeoplePageQuery",
|
||||||
"selections": [
|
"selections": [
|
||||||
{
|
{
|
||||||
"alias": null,
|
"alias": "currentOrganization",
|
||||||
"args": (v0/*: any*/),
|
"args": (v0/*: any*/),
|
||||||
"concreteType": null,
|
"concreteType": null,
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
@@ -81,7 +81,7 @@ return {
|
|||||||
"name": "CreatePeoplePageQuery",
|
"name": "CreatePeoplePageQuery",
|
||||||
"selections": [
|
"selections": [
|
||||||
{
|
{
|
||||||
"alias": null,
|
"alias": "currentOrganization",
|
||||||
"args": (v0/*: any*/),
|
"args": (v0/*: any*/),
|
||||||
"concreteType": null,
|
"concreteType": null,
|
||||||
"kind": "LinkedField",
|
"kind": "LinkedField",
|
||||||
@@ -103,16 +103,16 @@ return {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"params": {
|
"params": {
|
||||||
"cacheID": "e3812048d135626b79aa289d77ecd630",
|
"cacheID": "816d745d1a69d598b3507fa4df1e878f",
|
||||||
"id": null,
|
"id": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"name": "CreatePeoplePageQuery",
|
"name": "CreatePeoplePageQuery",
|
||||||
"operationKind": "query",
|
"operationKind": "query",
|
||||||
"text": "query CreatePeoplePageQuery {\n node(id: \"AZSfP_xAcAC5IAAAAAAltA\") {\n __typename\n id\n ... on Organization {\n name\n }\n }\n}\n"
|
"text": "query CreatePeoplePageQuery {\n currentOrganization: node(id: \"AZSfP_xAcAC5IAAAAAAltA\") {\n __typename\n id\n ... on Organization {\n name\n }\n }\n}\n"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
(node as any).hash = "629fdb563382b22be4a6c1f17fafda96";
|
(node as any).hash = "54148a2bd398d4fda7c72b60c7210e6d";
|
||||||
|
|
||||||
export default node;
|
export default node;
|
||||||
|
|||||||
Reference in New Issue
Block a user