2
0

🐛 (share) Fix custom domain delete

This commit is contained in:
Baptiste Arnaud
2023-01-28 15:00:11 +01:00
parent 201939f8a3
commit cb83935da9
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ type UpdateTypebotPayload = Partial<{
publicId: string
name: string
icon: string
customDomain: string
customDomain: string | null
resultsTablePreferences: ResultsTablePreferences
isClosed: boolean
}>

View File

@ -49,7 +49,7 @@ export const SharePage = () => {
handleCustomDomainChange(newDomain)
}
const handleCustomDomainChange = (customDomain: string | undefined) =>
const handleCustomDomainChange = (customDomain: string | null) =>
updateTypebot({ customDomain })
const checkIfPathnameIsValid = (pathname: string) => {
@ -116,7 +116,7 @@ export const SharePage = () => {
icon={<TrashIcon />}
aria-label="Remove custom domain"
size="xs"
onClick={() => handleCustomDomainChange(undefined)}
onClick={() => handleCustomDomainChange(null)}
/>
</HStack>
)}