Skip to content

Commit

Permalink
fix(platform): environment zone
Browse files Browse the repository at this point in the history
  • Loading branch information
lizimeow committed Aug 31, 2022
1 parent cd72fda commit 1cb8883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const EnvEditForm = (props: FromProps) => {
const headersRef = useRef<{ getHeaders: () => HeaderType[] }>()
const cookiesRef = useRef<{ getCookies: () => PartialCookie[] }>()
const [isCompetitor, setAsCompetitor] = useState<boolean>(!!defaultEnv?.isCompetitor)
const [zone, setZone] = useState(defaultZone)
const [zone, setZone] = useState(defaultEnv?.zone ?? defaultZone)

const onSave = useCallback(
(_e: any) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { SharedColors } from '@perfsee/dls'

import { DeletePropertyProgress, EnvSchema, PropertyModule } from '../../../shared'
import { ButtonOperators, DeleteContent, SettingDialogs, CountBlock, DialogVisible } from '../settings-common-comp'
import { EllipsisText, NormalToken } from '../style'
import { EllipsisText, NormalToken, StyledDesc } from '../style'

import { EnvEditForm } from './env-edit-form'

Expand Down Expand Up @@ -97,6 +97,7 @@ export const SettingsEnvironments = () => {
<h4 style={item.disable ? { color: SharedColors.gray10 } : undefined}>{item.name}</h4>
<CountBlock title="cookie" count={cookieCount} />
<CountBlock title="header" count={headerCount} />
<StyledDesc size="12px">{item.zone}</StyledDesc>
</EllipsisText>
<ButtonOperators
item={item}
Expand Down

0 comments on commit 1cb8883

Please sign in to comment.