Fix role edit page tab instance id (#11074)
Also fixes workflows Fixes https://github.com/twentyhq/twenty/issues/11073
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user