Adding variable to the scope and contemplating undefined from the BE

This commit is contained in:
Belen Curcio
2018-08-17 12:02:07 -03:00
parent fb2af720ed
commit 1c135a9ccb
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export interface StreamProps {
onLoadMore?: () => void;
hasMore?: boolean;
disableLoadMore?: boolean;
user: User | null;
user: User | null | undefined;
}
const Stream: StatelessComponent<StreamProps> = props => {
@@ -14,7 +14,7 @@ import { User } from "../containers/UserBoxContainer";
interface InnerProps {
asset: Data;
user: User | null;
user: User | null | undefined;
relay: RelayPaginationProp;
}
@@ -29,7 +29,7 @@ export interface User {
interface InnerProps {
local: Local;
user: User | null;
user: User | null | undefined;
showAuthPopup: ShowAuthPopupMutation;
setAuthPopupState: SetAuthPopupStateMutation;
}
@@ -37,7 +37,7 @@ const StreamQuery: StatelessComponent<InnerProps> = ({
}) => (
<QueryRenderer<StreamQueryVariables, StreamQueryResponse>
query={graphql`
query StreamQuery($assetID: ID!) {
query StreamQuery($assetID: ID!, $signedIn: Boolean!) {
asset(id: $assetID) {
...StreamContainer_asset
}