Skip to content

Commit 55d15a9

Browse files
committed
Update hardcoded URL
1 parent 8ed07c2 commit 55d15a9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Fixed
10+
- Fix action url that was hard coded
11+
912

1013
## [1.37.2] - 2024-11-11
1114

1215
### Fix
1316

14-
- Fixed the change `Is Required` text to `Is Filterable` present in warning
17+
- Fixed the change `Is Required` text to `Is Filterable` present in warning
1518

1619
## [1.37.1] - 2024-11-07
1720
### Feat

react/admin/OrganizationsList.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import type { TagProps } from '@vtex/admin-ui'
2121
import { Alert, Link, Button } from 'vtex.styleguide'
2222
import { FormattedMessage } from 'react-intl'
2323

24+
import { useSessionResponse } from '../modules/session'
25+
import type { Session } from '../modules/session'
2426
import {
2527
INITIAL_FETCH_LIST_OPTIONS,
2628
useOrganizationsList,
@@ -45,6 +47,10 @@ const OrganizationsList: FunctionComponent = () => {
4547
INITIAL_FETCH_LIST_OPTIONS
4648
)
4749

50+
const session = useSessionResponse() as Session
51+
52+
const account = session?.namespaces?.account?.accountName?.value
53+
4854
const [isOpenWarning, setIsOpenWarning] = useState(true)
4955

5056
const { data: fetchedOrgs, loading, refetch } = useOrganizationsList()
@@ -172,7 +178,7 @@ const OrganizationsList: FunctionComponent = () => {
172178
<Button
173179
size="small"
174180
variation="tertiary"
175-
href="https://b2bstore005.ds.vtexcrm.com.br/#RGF0YUVudGl0eSNGb3JtRGF0YSNyb3dJZD1DTCMjI0Zvcm1EYXRhX1N1Y2VzcyNBamF4UmVxdWVz%0adEVycm9yI2NvbnRlbnQ%3d"
181+
href={`https://${account}.ds.vtexcrm.com.br/#RGF0YUVudGl0eSNGb3JtRGF0YSNyb3dJZD1DTCMjI0Zvcm1EYXRhX1N1Y2VzcyNBamF4UmVxdWVz%0adEVycm9yI2NvbnRlbnQ%3d`}
176182
className={csx({ fontWeight: '500', whiteSpace: 'nowrap' })}
177183
target="_blank"
178184
>

0 commit comments

Comments
 (0)