{columns.map((column, index) => (
-
-
+
+
-
{column.title}
@@ -374,7 +374,7 @@ const IntegratedStrategy = () => { {column.date && {column.date}}
+
{column.categories.map((category, categoryIndex) => (
))}
diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx
index 6081b89..67a349f 100644
--- a/src/pages/Settings.tsx
+++ b/src/pages/Settings.tsx
@@ -118,10 +118,10 @@ const Settings = () => {
// Initialize form data when profile loads
useEffect(() => {
if (profileData?.user_profiles) {
- const userProfile = profileData.user_profiles[0];
+ const userProfile = profileData?.user_profiles[0];
setFormData({
- displayName: userProfile.display_name || '',
- email: userProfile.email || ''
+ displayName: userProfile?.display_name || '',
+ email: userProfile?.email || ''
});
}
}, [profileData]);
@@ -333,7 +333,7 @@ const Settings = () => {
{/* Main Content */}
-
+
{activeSection === "profile" && (