refactor: Update zone handling by integrating zoneStore in multiple components and removing unused zones state

This commit is contained in:
2025-07-03 17:55:19 +05:30
parent 3f59f5d2dd
commit 46ff5c0208
10 changed files with 80 additions and 56 deletions

View File

@@ -56,7 +56,6 @@ const UserAuth: React.FC = () => {
try {
const projects = await recentlyViewed(organization, res.message.userId);
console.log('projects: ', projects);
if (res.message.isShare) {
if (Object.values(projects.RecentlyViewed).length > 0) {
const firstId = (Object.values(projects?.RecentlyViewed || {})[0] as any)?._id;