Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix duplicate

Nevo David5fb59190f650
diff --git a/apps/frontend/src/components/launches/calendar.tsx b/apps/frontend/src/components/launches/calendar.tsx
index 0918d2386..ada4e0e99 100644
--- a/apps/frontend/src/components/launches/calendar.tsx
+++ b/apps/frontend/src/components/launches/calendar.tsx
@@ -1,7 +1,13 @@
'use client';
import React, {
- FC, Fragment, memo, useCallback, useEffect, useMemo, useState
+ FC,
+ Fragment,
+ memo,
+ useCallback,
+ useEffect,
+ useMemo,
+ useState,
} from 'react';
import {
CalendarContext,
@@ -442,7 +448,19 @@ export const CalendarColumn: FC<{
children: (
<ExistingData value={data}>
<AddEditModal
- {...(isDuplicate ? { onlyValues: data.posts } : {})}
+ {...(isDuplicate
+ ? {
+ onlyValues: data.posts.map(
+ ({ image, settings, content }: any) => {
+ return {
+ image,
+ settings,
+ content,
+ };
+ }
+ ),
+ }
+ : {})}
allIntegrations={integrations.map((p) => ({ ...p }))}
reopenModal={editPost(post)}
mutate={reloadCalendarView}