From f4593e41abbff4626dba77faa65eebfba193572b Mon Sep 17 00:00:00 2001 From: ben-chamberlain Date: Wed, 19 Jun 2024 09:54:30 +1200 Subject: [PATCH] fix/398 MySolutions WSOD (#400) * fix wsod; * update generated --------- Co-authored-by: Chris Chamberlain --- src/pages/MySolutions.tsx | 2 ++ .../__generated__/MySolutionsQuery.graphql.ts | 32 +++++++++---------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/pages/MySolutions.tsx b/src/pages/MySolutions.tsx index e8dcb1f..8ee2f90 100644 --- a/src/pages/MySolutions.tsx +++ b/src/pages/MySolutions.tsx @@ -210,6 +210,8 @@ export const mySolutionsQuery = graphql` } } } + } + file { ... on TimeDependentInversionSolution { id meta { diff --git a/src/pages/__generated__/MySolutionsQuery.graphql.ts b/src/pages/__generated__/MySolutionsQuery.graphql.ts index 6555df5..6e88093 100644 --- a/src/pages/__generated__/MySolutionsQuery.graphql.ts +++ b/src/pages/__generated__/MySolutionsQuery.graphql.ts @@ -174,6 +174,11 @@ query MySolutionsQuery( id } } + ... on Node { + __isNode: __typename + id + node_id: id + } ... on TimeDependentInversionSolution { id meta { @@ -213,11 +218,6 @@ query MySolutionsQuery( id } } - ... on Node { - __isNode: __typename - node_id: id - id - } } } } @@ -847,20 +847,20 @@ return { "type": "ScaledInversionSolution", "abstractKey": null }, - { - "kind": "InlineFragment", - "selections": (v19/*: any*/), - "type": "TimeDependentInversionSolution", - "abstractKey": null - }, { "kind": "InlineFragment", "selections": [ - (v16/*: any*/), - (v3/*: any*/) + (v3/*: any*/), + (v16/*: any*/) ], "type": "Node", "abstractKey": "__isNode" + }, + { + "kind": "InlineFragment", + "selections": (v19/*: any*/), + "type": "TimeDependentInversionSolution", + "abstractKey": null } ], "storageKey": null @@ -895,14 +895,14 @@ return { ] }, "params": { - "cacheID": "403709619518bed0e1db93d13fbc004c", + "cacheID": "e820afce0ec8a057af2be529f9341ae3", "id": null, "metadata": {}, "name": "MySolutionsQuery", "operationKind": "query", - "text": "query MySolutionsQuery(\n $id: [ID!]\n) {\n nodes(id_in: $id) {\n result {\n edges {\n node {\n __typename\n ... on AutomationTask {\n id\n task_type\n parents {\n edges {\n node {\n parent {\n id\n created\n title\n description\n model_type\n swept_arguments\n notes\n argument_lists {\n k\n v\n }\n }\n }\n }\n }\n files {\n edges {\n node {\n file {\n __typename\n ... on ScaledInversionSolution {\n id\n meta {\n k\n v\n }\n predecessors {\n __typename\n pre_id: id\n relationship\n depth\n node {\n __typename\n ... on File {\n file_meta: meta {\n k\n v\n }\n }\n ... on InversionSolution {\n is_meta: meta {\n k\n v\n }\n }\n ... on TimeDependentInversionSolution {\n td_meta: meta {\n k\n v\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on TimeDependentInversionSolution {\n id\n meta {\n k\n v\n }\n predecessors {\n __typename\n pre_id: id\n relationship\n depth\n node {\n __typename\n ... on File {\n file_meta: meta {\n k\n v\n }\n }\n ... on InversionSolution {\n is_meta: meta {\n k\n v\n }\n }\n ... on TimeDependentInversionSolution {\n td_meta: meta {\n k\n v\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n node_id: id\n id\n }\n }\n }\n }\n }\n inversion_solution {\n id\n file_name\n mfd_table_id\n meta {\n k\n v\n }\n tables {\n table_id\n table_type\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n }\n }\n }\n}\n" + "text": "query MySolutionsQuery(\n $id: [ID!]\n) {\n nodes(id_in: $id) {\n result {\n edges {\n node {\n __typename\n ... on AutomationTask {\n id\n task_type\n parents {\n edges {\n node {\n parent {\n id\n created\n title\n description\n model_type\n swept_arguments\n notes\n argument_lists {\n k\n v\n }\n }\n }\n }\n }\n files {\n edges {\n node {\n file {\n __typename\n ... on ScaledInversionSolution {\n id\n meta {\n k\n v\n }\n predecessors {\n __typename\n pre_id: id\n relationship\n depth\n node {\n __typename\n ... on File {\n file_meta: meta {\n k\n v\n }\n }\n ... on InversionSolution {\n is_meta: meta {\n k\n v\n }\n }\n ... on TimeDependentInversionSolution {\n td_meta: meta {\n k\n v\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n node_id: id\n }\n ... on TimeDependentInversionSolution {\n id\n meta {\n k\n v\n }\n predecessors {\n __typename\n pre_id: id\n relationship\n depth\n node {\n __typename\n ... on File {\n file_meta: meta {\n k\n v\n }\n }\n ... on InversionSolution {\n is_meta: meta {\n k\n v\n }\n }\n ... on TimeDependentInversionSolution {\n td_meta: meta {\n k\n v\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n }\n }\n }\n }\n inversion_solution {\n id\n file_name\n mfd_table_id\n meta {\n k\n v\n }\n tables {\n table_id\n table_type\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = '54e9a0cb666aeff024382e4b64cbbc13'; +(node as any).hash = '0cbbb7c6a340c9dd79abc52d50b2a4c4'; export default node;