From ec317bd3d097b0a74149bb7e270f26360b967876 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Wed, 1 Oct 2025 19:57:43 +0200 Subject: [PATCH] Fix workflow upgrade command (#14824) While upgrading to 1.7.0, we are facing an error in the workflow version upgrade for outdated workflow versions. Fixing the command --- ...low-manual-trigger-availability.command.ts | 2 +- packages/twenty-ui/src/navigation/index.ts | 38 ++++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) 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.ts index dcd478d7b1..a890fc8922 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 ActiveOrSu for (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.ts index 8c48cd6899..b6601c90fd 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 { - StyledMenuItemBase, - StyledMenuItemLabel, - StyledNoIconFiller, - StyledMenuItemLeftContent, - StyledMenuItemRightContent, StyledDraggableItem, StyledHoverableMenuItemBase, - StyledMenuItemIconCheck, + StyledMenuItemBase, StyledMenuItemContextualText, - StyledRightMenuItemContextualText, + StyledMenuItemIconCheck, + StyledMenuItemLabel, + StyledMenuItemLabelLight, + StyledMenuItemLeftContent, + StyledMenuItemRightContent, + 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'; +