2
0

(chatwoot) Add result URL custom attribute

This commit is contained in:
Baptiste Arnaud
2023-04-25 08:15:53 +02:00
parent 3529da210c
commit c09a84034e
5 changed files with 66 additions and 29 deletions

View File

@@ -1,12 +1,14 @@
import { Stack } from '@chakra-ui/react'
import React, { useState } from 'react'
import React, { useEffect, useState } from 'react'
import { LogsModal } from './LogsModal'
import { useTypebot } from '@/features/editor/providers/TypebotProvider'
import { useResults } from '../ResultsProvider'
import { ResultModal } from './ResultModal'
import { ResultsTable } from './table/ResultsTable'
import { useRouter } from 'next/router'
export const ResultsTableContainer = () => {
const { query } = useRouter()
const {
flatResults: results,
fetchNextPage,
@@ -34,6 +36,10 @@ export const ResultsTableContainer = () => {
setExpandedResultId(results[index].id)
}
useEffect(() => {
if (query.id) setExpandedResultId(query.id as string)
}, [query.id])
return (
<Stack pb="28" px={['4', '0']} spacing="4" maxW="1600px" w="full">
{publishedTypebot && (