refactor: Remove console log statements from DashboardHome, DashboardProjects, and CollaborationPopup components
This commit is contained in:
@@ -34,7 +34,6 @@ const DashboardHome: React.FC = () => {
|
|||||||
const fetchRecentProjects = async () => {
|
const fetchRecentProjects = async () => {
|
||||||
try {
|
try {
|
||||||
const projects = await recentlyViewed(organization, userId);
|
const projects = await recentlyViewed(organization, userId);
|
||||||
console.log('projects: ', projects);
|
|
||||||
|
|
||||||
if (JSON.stringify(projects) !== JSON.stringify(recentProjects)) {
|
if (JSON.stringify(projects) !== JSON.stringify(recentProjects)) {
|
||||||
setRecentProjects(projects);
|
setRecentProjects(projects);
|
||||||
|
|||||||
@@ -157,7 +157,6 @@ const DashboardProjects: React.FC = () => {
|
|||||||
const sharedProject = async () => {
|
const sharedProject = async () => {
|
||||||
try {
|
try {
|
||||||
const sharedWithMe = await sharedWithMeProjects();
|
const sharedWithMe = await sharedWithMeProjects();
|
||||||
console.log('sharedWithMe: ', sharedWithMe);
|
|
||||||
setSharedWithMeProjects(sharedWithMe)
|
setSharedWithMeProjects(sharedWithMe)
|
||||||
} catch {
|
} catch {
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ const CollaborationPopup: React.FC<CollaborateProps> = ({
|
|||||||
if (!projectId) return;
|
if (!projectId) return;
|
||||||
getProjectSharedList(projectId).then((allUser) => {
|
getProjectSharedList(projectId).then((allUser) => {
|
||||||
const accesMail = allUser?.datas || []
|
const accesMail = allUser?.datas || []
|
||||||
console.log('accesMail: ', accesMail);
|
|
||||||
setUsers(accesMail)
|
setUsers(accesMail)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user