From 2f31a8a8a129f3efcc4e5173d3e79c1678efdb63 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Mon, 1 Apr 2019 13:28:02 -0400 Subject: [PATCH] remove unused code in back-project --- app/components/projects/BackProject.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/components/projects/BackProject.jsx b/app/components/projects/BackProject.jsx index 9f4af79..01cc46f 100644 --- a/app/components/projects/BackProject.jsx +++ b/app/components/projects/BackProject.jsx @@ -169,10 +169,8 @@ const SubmissionSection = ({ classes, profiles, delegatePledges, projectId, open function BackProject({classes, match, profile, delegates, projectAddedEvents, delegateAddedEvents}) { 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 delegateProfilesArr = delegates.map(d => d.profile.fetch()) - console.log({delegateAddedEvents, profile, delegates, delegateProfilesArr, delegateProfiles}, profile[0].delegates.fetch()) return (
@@ -193,9 +191,6 @@ export default withDatabase(withObservables([], ({ database, match }) => ({ profile: database.collections.get('profiles').query( Q.where('id_profile', match.params.id) ).observe(), - delegates: database.collections.get('delegates').query( - Q.on('profiles','id_profile', 3) - ).observe(), projectAddedEvents: database.collections.get('lp_events').query( Q.where('event', 'ProjectAdded') ).observe(),