Skip to content

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

feat: fix typing

Nevo David777ca3d32992
diff --git a/apps/frontend/src/components/launches/calendar.tsx b/apps/frontend/src/components/launches/calendar.tsx
index 88e3fc4c6..a6d3af9de 100644
--- a/apps/frontend/src/components/launches/calendar.tsx
+++ b/apps/frontend/src/components/launches/calendar.tsx
@@ -548,7 +548,7 @@ export const ListView = () => {
missingRelease={openMissingRelease(post.id)}
editPost={editPost(post, false)}
duplicatePost={editPost(post, true)}
- copyDebugJson={user?.admin ? copyDebugJson(post) : undefined}
+ copyDebugJson={user?.isSuperAdmin ? copyDebugJson(post) : undefined}
post={post}
integrations={integrations}
deletePost={deletePost(post)}
@@ -868,7 +868,7 @@ export const CalendarColumn: FC<{
missingRelease={openMissingRelease(post.id)}
editPost={editPost(post, false)}
duplicatePost={editPost(post, true)}
- copyDebugJson={user?.admin ? copyDebugJson(post) : undefined}
+ copyDebugJson={user?.isSuperAdmin ? copyDebugJson(post) : undefined}
post={post}
integrations={integrations}
deletePost={deletePost(post)}
diff --git a/apps/frontend/src/components/launches/import-debug-post.modal.tsx b/apps/frontend/src/components/launches/import-debug-post.modal.tsx
index 6a935e33a..65c28593a 100644
--- a/apps/frontend/src/components/launches/import-debug-post.modal.tsx
+++ b/apps/frontend/src/components/launches/import-debug-post.modal.tsx
@@ -73,7 +73,7 @@ export const ImportDebugPostModal: FC<{ close: () => void }> = ({ close }) => {
}
}, []);
- const matchingIntegrations = useMemo(() => {
+ const matchingIntegrations = useMemo((): any[] => {
if (!parsed || !integrations?.length) return [];
return integrations.filter(
(i: any) => i.identifier === parsed._debug.providerIdentifier
@@ -90,7 +90,7 @@ export const ImportDebugPostModal: FC<{ close: () => void }> = ({ close }) => {
...payload,
type: 'draft',
date: new Date().toISOString(),
- tags: [],
+ tags: [] as { value: string; label: string }[],
posts: payload.posts.map((post) => ({
...post,
integration: { id: selectedIntegrationId },