The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix workflow upgrade command (#14824)
Charles Bochetec317bd3d097
diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/1-7/1-7-backfill-workflow-manual-trigger-availability.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/1-7/1-7-backfill-workflow-manual-trigger-availability.command.tsindex dcd478d7b16..a890fc8922d 100644--- a/packages/twenty-server/src/database/commands/upgrade-version-command/1-7/1-7-backfill-workflow-manual-trigger-availability.command.ts+++ b/packages/twenty-server/src/database/commands/upgrade-version-command/1-7/1-7-backfill-workflow-manual-trigger-availability.command.ts@@ -41,7 +41,7 @@ export class BackfillWorkflowManualTriggerAvailabilityCommand extends ActiveOrSufor (const workflowVersion of workflowVersions) {const { trigger } = workflowVersion;- if (trigger.type !== WorkflowTriggerType.MANUAL) {+ if (!isDefined(trigger) || trigger?.type !== WorkflowTriggerType.MANUAL) {continue;}diff --git a/packages/twenty-ui/src/navigation/index.ts b/packages/twenty-ui/src/navigation/index.tsindex 8c48cd68994..b6601c90fde 100644--- a/packages/twenty-ui/src/navigation/index.ts+++ b/packages/twenty-ui/src/navigation/index.ts@@ -18,52 +18,54 @@ export { UndecoratedLink } from './link/components/UndecoratedLink';export { CAL_LINK } from './link/constants/Cal';export { GITHUB_LINK } from './link/constants/GithubLink';export { TWENTY_PRICING_LINK } from './link/constants/TwentyPricingLink';-export type { MenuPickerProps } from './menu/components/MenuPicker';export { MenuPicker } from './menu/components/MenuPicker';+export type { MenuPickerProps } from './menu/components/MenuPicker';+export { MenuItem } from './menu/menu-item/components/MenuItem';export type {MenuItemIconButton,- MenuItemProps,+ MenuItemProps} from './menu/menu-item/components/MenuItem';-export { MenuItem } from './menu/menu-item/components/MenuItem';-export type { MenuItemAvatarProps } from './menu/menu-item/components/MenuItemAvatar';export { MenuItemAvatar } from './menu/menu-item/components/MenuItemAvatar';-export type { MenuItemDraggableProps } from './menu/menu-item/components/MenuItemDraggable';+export type { MenuItemAvatarProps } from './menu/menu-item/components/MenuItemAvatar';export { MenuItemDraggable } from './menu/menu-item/components/MenuItemDraggable';-export type { MenuItemHotKeysProps } from './menu/menu-item/components/MenuItemHotKeys';+export type { MenuItemDraggableProps } from './menu/menu-item/components/MenuItemDraggable';export { MenuItemHotKeys } from './menu/menu-item/components/MenuItemHotKeys';+export type { MenuItemHotKeysProps } from './menu/menu-item/components/MenuItemHotKeys';export { MenuItemMultiSelect } from './menu/menu-item/components/MenuItemMultiSelect';export { MenuItemMultiSelectAvatar } from './menu/menu-item/components/MenuItemMultiSelectAvatar';export { MenuItemMultiSelectTag } from './menu/menu-item/components/MenuItemMultiSelectTag';-export type { MenuItemNavigateProps } from './menu/menu-item/components/MenuItemNavigate';export { MenuItemNavigate } from './menu/menu-item/components/MenuItemNavigate';+export type { MenuItemNavigateProps } from './menu/menu-item/components/MenuItemNavigate';export {- StyledMenuItemSelect,MenuItemSelect,+ StyledMenuItemSelect} from './menu/menu-item/components/MenuItemSelect';export { MenuItemSelectAvatar } from './menu/menu-item/components/MenuItemSelectAvatar';export {colorLabels,- MenuItemSelectColor,+ MenuItemSelectColor} from './menu/menu-item/components/MenuItemSelectColor';export { MenuItemSelectTag } from './menu/menu-item/components/MenuItemSelectTag';-export type { MenuItemSuggestionProps } from './menu/menu-item/components/MenuItemSuggestion';export { MenuItemSuggestion } from './menu/menu-item/components/MenuItemSuggestion';+export type { MenuItemSuggestionProps } from './menu/menu-item/components/MenuItemSuggestion';export { MenuItemToggle } from './menu/menu-item/components/MenuItemToggle';export { MenuItemLeftContent } from './menu/menu-item/internals/components/MenuItemLeftContent';-export type { MenuItemBaseProps } from './menu/menu-item/internals/components/StyledMenuItemBase';export {+ StyledDraggableItem,+ StyledHoverableMenuItemBase,StyledMenuItemBase,+ StyledMenuItemContextualText,+ StyledMenuItemIconCheck,StyledMenuItemLabel,- StyledNoIconFiller,+ StyledMenuItemLabelLight,StyledMenuItemLeftContent,StyledMenuItemRightContent,- StyledDraggableItem,- StyledHoverableMenuItemBase,- StyledMenuItemIconCheck,- StyledMenuItemContextualText,- StyledRightMenuItemContextualText,+ StyledNoIconFiller,+ StyledRightMenuItemContextualText} from './menu/menu-item/internals/components/StyledMenuItemBase';+export type { MenuItemBaseProps } from './menu/menu-item/internals/components/StyledMenuItemBase';export type { MenuItemAccent } from './menu/menu-item/types/MenuItemAccent';export { NavigationBar } from './navigation-bar/components/NavigationBar';export { NavigationBarItem } from './navigation-bar/components/NavigationBarItem';export { NotificationCounter } from './notification-counter/components/NotificationCounter';+