Skip to content

Commit

Permalink
fix: CodeSnippet content cannot be element (#22319)
Browse files Browse the repository at this point in the history
* fix snippet content not being text

* remove unused default cname

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
frankh and github-actions[bot] committed May 16, 2024
1 parent c3767cb commit d6b837c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions frontend/src/scenes/settings/project/Proxy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'

import { proxyLogic, ProxyRecord } from './proxyLogic'

const DEFAULT_CNAME = 'k8s-proxyasa-proxyasa-e8343c0048-1f26b5a36cde44fd.elb.us-east-1.amazonaws.com.'

export function Proxy(): JSX.Element {
const { isCloudOrDev } = useValues(preflightLogic)
const { formState, proxyRecords } = useValues(proxyLogic)
Expand Down Expand Up @@ -143,9 +141,7 @@ function CreateRecordForm(): JSX.Element {
</div>
{waitingRecords.map((r) => (
<CodeSnippet key={r.id} language={Language.HTTP}>
<span>
{r.domain} {'->'} {r ? r.cname_target : DEFAULT_CNAME}
</span>
{r.domain + ' -> ' + r.cname_target}
</CodeSnippet>
))}
<div className="flex justify-end">
Expand Down

0 comments on commit d6b837c

Please sign in to comment.