2
0

feat: ️ Typebot header back to folder if exists

This commit is contained in:
Baptiste Arnaud
2022-02-28 11:24:37 +01:00
parent c5b378dfad
commit cb51e6bd20
2 changed files with 14 additions and 12 deletions

View File

@@ -108,7 +108,11 @@ export const TypebotHeader = () => {
as={NextChakraLink}
aria-label="Back"
icon={<ChevronLeftIcon fontSize={30} />}
href="/typebots"
href={
typebot?.folderId
? `/typebots/folders/${typebot.folderId}`
: '/typebots'
}
/>
{typebot?.name && (
<EditableTypebotName