🐛 (share) Fix custom domain delete
This commit is contained in:
@ -52,7 +52,7 @@ type UpdateTypebotPayload = Partial<{
|
|||||||
publicId: string
|
publicId: string
|
||||||
name: string
|
name: string
|
||||||
icon: string
|
icon: string
|
||||||
customDomain: string
|
customDomain: string | null
|
||||||
resultsTablePreferences: ResultsTablePreferences
|
resultsTablePreferences: ResultsTablePreferences
|
||||||
isClosed: boolean
|
isClosed: boolean
|
||||||
}>
|
}>
|
||||||
|
@ -49,7 +49,7 @@ export const SharePage = () => {
|
|||||||
handleCustomDomainChange(newDomain)
|
handleCustomDomainChange(newDomain)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleCustomDomainChange = (customDomain: string | undefined) =>
|
const handleCustomDomainChange = (customDomain: string | null) =>
|
||||||
updateTypebot({ customDomain })
|
updateTypebot({ customDomain })
|
||||||
|
|
||||||
const checkIfPathnameIsValid = (pathname: string) => {
|
const checkIfPathnameIsValid = (pathname: string) => {
|
||||||
@ -116,7 +116,7 @@ export const SharePage = () => {
|
|||||||
icon={<TrashIcon />}
|
icon={<TrashIcon />}
|
||||||
aria-label="Remove custom domain"
|
aria-label="Remove custom domain"
|
||||||
size="xs"
|
size="xs"
|
||||||
onClick={() => handleCustomDomainChange(undefined)}
|
onClick={() => handleCustomDomainChange(null)}
|
||||||
/>
|
/>
|
||||||
</HStack>
|
</HStack>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user