π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix internal channels
Nevo David38f31f3a8370
diff --git a/apps/frontend/src/components/new-launch/add.edit.modal.tsx b/apps/frontend/src/components/new-launch/add.edit.modal.tsxindex d679a6be1..1649fa1ac 100644--- a/apps/frontend/src/components/new-launch/add.edit.modal.tsx+++ b/apps/frontend/src/components/new-launch/add.edit.modal.tsx@@ -40,12 +40,9 @@ export const AddEditModal: FC<AddEditModalProps> = (props) => {);const integrations = useLaunchStore((state) => state.integrations);-useEffect(() => {setDate(props.date || dayjs());- setAllIntegrations(- (props.integrations || []).filter((f) => !f.inBetweenSteps && !f.disabled)- );+ setAllIntegrations(props.allIntegrations || []);setIsCreateSet(!!props.addEditSets);}, []);diff --git a/apps/frontend/src/components/new-launch/editor.tsx b/apps/frontend/src/components/new-launch/editor.tsxindex 07732ee6f..3f7b6169b 100644--- a/apps/frontend/src/components/new-launch/editor.tsx+++ b/apps/frontend/src/components/new-launch/editor.tsx@@ -455,10 +455,10 @@ export const Editor: FC<{<divclassName={clsx('text-end text-sm mt-1',- props.value.length > props.totalChars && '!text-red-500'+ props?.value?.length > props.totalChars && '!text-red-500')}>- {props.value.length}/{props.totalChars}+ {props?.value?.length}/{props.totalChars}</div>)}</>diff --git a/apps/frontend/src/components/new-launch/picks.socials.component.tsx b/apps/frontend/src/components/new-launch/picks.socials.component.tsxindex e33b8010e..e1c2f04fd 100644--- a/apps/frontend/src/components/new-launch/picks.socials.component.tsx+++ b/apps/frontend/src/components/new-launch/picks.socials.component.tsx@@ -28,7 +28,7 @@ export const PicksSocialsComponent: FC<{ toolTip?: boolean }> = ({<div className="innerComponent"><div className="grid grid-cols-13 gap-[10px]">{integrations- .filter((f) => !f.inBetweenSteps)+ .filter((f) => !f.inBetweenSteps && !f.disabled).map((integration) => (<divkey={integration.id}diff --git a/apps/frontend/src/components/new-launch/providers/high.order.provider.tsx b/apps/frontend/src/components/new-launch/providers/high.order.provider.tsxindex a90cfb1f6..ee97d4bd4 100644--- a/apps/frontend/src/components/new-launch/providers/high.order.provider.tsx+++ b/apps/frontend/src/components/new-launch/providers/high.order.provider.tsx@@ -62,6 +62,7 @@ export const withProvider = function <T extends object>(setTab,setTotalChars,justCurrent,+ allIntegrations,} = useLaunchStore(useShallow((state) => ({date: state.date,@@ -70,6 +71,7 @@ export const withProvider = function <T extends object>(global: state.global,internal: state.internal.find((p) => p.integration.id === props.id),integrations: state.selectedIntegrations,+ allIntegrations: state.integrations,justCurrent: state.current,current: state.current === props.id,isGlobal: state.current === 'global',@@ -195,7 +197,7 @@ export const withProvider = function <T extends object>(value={{date,integration: selectedIntegration.integration,- allIntegrations: integrations.map((p) => p.integration),+ allIntegrations,value: value.map((p) => ({id: p.id,content: p.content,