Use datum filter everywhere
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @generated SignedSource<<453e3cd4a7a9fdbacd183d097ec95a05>>
|
||||
* @generated SignedSource<<7e67f2a3d41fbea46b7b8447595302a5>>
|
||||
* @lightSyntaxTransform
|
||||
* @nogrep
|
||||
*/
|
||||
@@ -316,7 +316,6 @@ return {
|
||||
"alias": null,
|
||||
"args": (v5/*: any*/),
|
||||
"filters": [
|
||||
"orderBy",
|
||||
"filter"
|
||||
],
|
||||
"handle": "connection",
|
||||
|
||||
@@ -54,7 +54,7 @@ const paginatedDataFragment = graphql`
|
||||
before: $before
|
||||
orderBy: $order
|
||||
filter: { snapshotId: $snapshotId }
|
||||
) @connection(key: "DataPage_data") {
|
||||
) @connection(key: "DataPage_data", filters: ["filter"]) {
|
||||
__id
|
||||
edges {
|
||||
node {
|
||||
|
||||
@@ -59,7 +59,11 @@ export default function DatumDetailsPage(props: Props) {
|
||||
|
||||
const deleteDatum = useDeleteDatum(
|
||||
datumEntry,
|
||||
ConnectionHandler.getConnectionID(organizationId, "DataPage_data"),
|
||||
ConnectionHandler.getConnectionID(
|
||||
organizationId,
|
||||
"DataPage_data",
|
||||
{ filter: { snapshotId: snapshotId || null } }
|
||||
),
|
||||
);
|
||||
|
||||
const vendors = datumEntry?.vendors?.edges.map(edge => edge.node) ?? [];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @generated SignedSource<<8364d9457b59a3ef50b508ab55991638>>
|
||||
* @generated SignedSource<<2000fd2ccfcf4b832c51ff71b0326fef>>
|
||||
* @lightSyntaxTransform
|
||||
* @nogrep
|
||||
*/
|
||||
@@ -394,7 +394,6 @@ return {
|
||||
"alias": null,
|
||||
"args": (v15/*: any*/),
|
||||
"filters": [
|
||||
"orderBy",
|
||||
"filter"
|
||||
],
|
||||
"handle": "connection",
|
||||
@@ -422,6 +421,6 @@ return {
|
||||
};
|
||||
})();
|
||||
|
||||
(node as any).hash = "a60d9b34a83df89eb59ffcd359903ce8";
|
||||
(node as any).hash = "5d3069a0d856613ccb854033b5b1f14e";
|
||||
|
||||
export default node;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @generated SignedSource<<17f6d8607b6d2a1b575e1251019b8375>>
|
||||
* @generated SignedSource<<9619ee8f74aea67be931f8c40a8815c8>>
|
||||
* @lightSyntaxTransform
|
||||
* @nogrep
|
||||
*/
|
||||
@@ -143,11 +143,6 @@ return {
|
||||
],
|
||||
"kind": "ObjectValue",
|
||||
"name": "filter"
|
||||
},
|
||||
{
|
||||
"kind": "Variable",
|
||||
"name": "orderBy",
|
||||
"variableName": "order"
|
||||
}
|
||||
],
|
||||
"concreteType": "DatumConnection",
|
||||
@@ -334,6 +329,6 @@ return {
|
||||
};
|
||||
})();
|
||||
|
||||
(node as any).hash = "a60d9b34a83df89eb59ffcd359903ce8";
|
||||
(node as any).hash = "5d3069a0d856613ccb854033b5b1f14e";
|
||||
|
||||
export default node;
|
||||
|
||||
Reference in New Issue
Block a user