diff --git a/src/core/client/stream/containers/AppContainer.tsx b/src/core/client/stream/containers/AppContainer.tsx index 07ee8b105..02abbf314 100644 --- a/src/core/client/stream/containers/AppContainer.tsx +++ b/src/core/client/stream/containers/AppContainer.tsx @@ -20,13 +20,8 @@ const enhanced = withFragmentContainer<{ data: Data }>( fragment AppContainer on Query @argumentDefinitions( assetID: { type: "ID!" } - commentID: { type: "ID" } showAssetList: { type: "Boolean!" } - showPermalink: { type: "Boolean!" } ) { - comment(id: $commentID) @include(if: $showPermalink) { - id - } assets @include(if: $showAssetList) { ...AssetListContainer_assets } diff --git a/src/core/client/stream/local/local.graphql b/src/core/client/stream/local/local.graphql index 59c829490..3359458d0 100644 --- a/src/core/client/stream/local/local.graphql +++ b/src/core/client/stream/local/local.graphql @@ -6,7 +6,6 @@ type Network { type Local { network: Network! assetID: String - commentID: String } extend type Query { diff --git a/src/core/client/stream/queries/AppQuery.tsx b/src/core/client/stream/queries/AppQuery.tsx index 86cbb69ff..d1256d249 100644 --- a/src/core/client/stream/queries/AppQuery.tsx +++ b/src/core/client/stream/queries/AppQuery.tsx @@ -33,19 +33,9 @@ const AppQuery: StatelessComponent = props => { return ( query={graphql` - query AppQuery( - $assetID: ID! - $commentID: ID - $showAssetList: Boolean! - $showPermalink: Boolean! - ) { + query AppQuery($assetID: ID!, $showAssetList: Boolean!) { ...AppContainer - @arguments( - assetID: $assetID - commentID: $commentID - showAssetList: $showAssetList - showPermalink: $showPermalink - ) + @arguments(assetID: $assetID, showAssetList: $showAssetList) } `} variables={{ @@ -53,9 +43,6 @@ const AppQuery: StatelessComponent = props => { assetID: props.local.assetID || (null as any), // TODO: This is set to false, as server does not support querying assets yet. showAssetList: !props.local.assetID && false, - - commentID: props.local.commentID || (null as any), - showPermalink: false, }} render={render} /> @@ -66,7 +53,6 @@ const enhanced = withLocalStateContainer( graphql` fragment AppQueryLocal on Local { assetID - commentID } ` )(AppQuery);