remove unused code in back-project

This commit is contained in:
Barry Gitarts 2019-04-01 13:28:02 -04:00 committed by Barry G
parent 776d0834a5
commit 2f31a8a8a1
1 changed files with 1 additions and 6 deletions

View File

@ -169,10 +169,8 @@ const SubmissionSection = ({ classes, profiles, delegatePledges, projectId, open
function BackProject({classes, match, profile, delegates, projectAddedEvents, delegateAddedEvents}) { function BackProject({classes, match, profile, delegates, projectAddedEvents, delegateAddedEvents}) {
const projectId = match.params.id const projectId = match.params.id
const { projectAge, projectAssets, manifest, delegateProfiles, openSnackBar } = useProjectData(projectId, profile, projectAddedEvents) const { manifest, delegateProfiles, openSnackBar } = useProjectData(projectId, profile, projectAddedEvents)
const delegatePledges = useProfileData(delegateProfiles) const delegatePledges = useProfileData(delegateProfiles)
const delegateProfilesArr = delegates.map(d => d.profile.fetch())
console.log({delegateAddedEvents, profile, delegates, delegateProfilesArr, delegateProfiles}, profile[0].delegates.fetch())
return ( return (
<div className={classes.root}> <div className={classes.root}>
<Title className={classes.title} manifest={manifest} /> <Title className={classes.title} manifest={manifest} />
@ -193,9 +191,6 @@ export default withDatabase(withObservables([], ({ database, match }) => ({
profile: database.collections.get('profiles').query( profile: database.collections.get('profiles').query(
Q.where('id_profile', match.params.id) Q.where('id_profile', match.params.id)
).observe(), ).observe(),
delegates: database.collections.get('delegates').query(
Q.on('profiles','id_profile', 3)
).observe(),
projectAddedEvents: database.collections.get('lp_events').query( projectAddedEvents: database.collections.get('lp_events').query(
Q.where('event', 'ProjectAdded') Q.where('event', 'ProjectAdded')
).observe(), ).observe(),