How to replace GraphQL variable if not available?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
0
I have a strange question regrading a query request I am trying to do. So while the b_id variable is undefined I want to replace with null in the following example. I've tried by adding props.business.getUserBusiness[0]._id || null but still come back with undefined error. export default compose( withApollo, graphql(GET_ME, { name: "getMe" }), graphql(GET_USER_BUSINESS, { name: "business" }), graphql(GET_BUSINESS_JOBS, { name: "businessJobs", skip: (props) => !props.business || !props.business.getUserBusiness, options: (p...