⚡ (chatwoot) Add result URL custom attribute
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user