Compare commits

...
Author SHA1 Message Date
ehconitin 1ffc244fae fix 2026-02-25 15:52:05 +05:30
2 changed files with 3 additions and 5 deletions
@@ -2,6 +2,7 @@ import { Action } from '@/action-menu/actions/components/Action';
import { isBulkRecordsManualTrigger } from '@/action-menu/actions/record-actions/utils/isBulkRecordsManualTrigger';
import { ActionScope } from '@/action-menu/actions/types/ActionScope';
import { ActionType } from '@/action-menu/actions/types/ActionType';
import { MAIN_CONTEXT_STORE_INSTANCE_ID } from '@/context-store/constants/MainContextStoreInstanceId';
import { contextStoreIsPageInEditModeComponentState } from '@/context-store/states/contextStoreIsPageInEditModeComponentState';
import { contextStoreTargetedRecordsRuleComponentState } from '@/context-store/states/contextStoreTargetedRecordsRuleComponentState';
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
@@ -40,7 +41,7 @@ export const useRunWorkflowRecordActions = ({
const isPageInEditMode = useAtomComponentStateValue(
contextStoreIsPageInEditModeComponentState,
recordIndexId,
MAIN_CONTEXT_STORE_INSTANCE_ID,
);
const selectedRecordIds =
@@ -8,7 +8,6 @@ import { MAIN_CONTEXT_STORE_INSTANCE_ID } from '@/context-store/constants/MainCo
import { contextStoreCurrentViewTypeComponentState } from '@/context-store/states/contextStoreCurrentViewTypeComponentState';
import { contextStoreIsPageInEditModeComponentState } from '@/context-store/states/contextStoreIsPageInEditModeComponentState';
import { contextStoreTargetedRecordsRuleComponentState } from '@/context-store/states/contextStoreTargetedRecordsRuleComponentState';
import { useRecordIndexIdFromCurrentContextStore } from '@/object-record/record-index/hooks/useRecordIndexIdFromCurrentContextStore';
import { usePermissionFlagMap } from '@/settings/roles/hooks/usePermissionFlagMap';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { isDefined } from 'twenty-shared/utils';
@@ -32,11 +31,9 @@ export const useRegisteredActions = (
MAIN_CONTEXT_STORE_INSTANCE_ID,
);
const { recordIndexId } = useRecordIndexIdFromCurrentContextStore();
const isFullTabWidgetInEditMode = useAtomComponentStateValue(
contextStoreIsPageInEditModeComponentState,
recordIndexId,
MAIN_CONTEXT_STORE_INSTANCE_ID,
);
const viewType = getActionViewType(