Fix role edit page tab instance id (#11074)

Also fixes workflows
Fixes https://github.com/twentyhq/twenty/issues/11073
This commit is contained in:
Weiko
2025-03-20 18:30:02 +01:00
committed by GitHub
parent 3876cb8250
commit 95014b0ac5
2 changed files with 5 additions and 1 deletions

View File

@ -45,6 +45,7 @@ export const WorkflowVariablesDropdownFieldItems = ({
const setWorkflowSelectedNode = useSetRecoilState(workflowSelectedNodeState);
const setActiveTabId = useSetRecoilComponentStateV2(
activeTabIdComponentState,
'workflow-serverless-function-tab-list-component-id',
);
const setWorkflowDiagramTriggerNodeSelection = useSetRecoilState(
workflowDiagramTriggerNodeSelectionState,

View File

@ -34,7 +34,10 @@ export const SettingsRoleEdit = () => {
const role = rolesData?.getRoles.find((r) => r.id === roleId);
const activeTabId = useRecoilComponentValueV2(activeTabIdComponentState);
const activeTabId = useRecoilComponentValueV2(
activeTabIdComponentState,
SETTINGS_ROLE_DETAIL_TABS.COMPONENT_INSTANCE_ID,
);
useEffect(() => {
if (!rolesLoading && !role) {