refactor: ♻️ Rename step to block
This commit is contained in:
@ -26,7 +26,7 @@ export const AnalyticsContent = ({ stats }: { stats?: Stats }) => {
|
||||
justifyContent="center"
|
||||
>
|
||||
{publishedTypebot && answersCounts && stats && (
|
||||
<GraphProvider blocks={publishedTypebot?.blocks ?? []} isReadOnly>
|
||||
<GraphProvider groups={publishedTypebot?.groups ?? []} isReadOnly>
|
||||
<Graph
|
||||
flex="1"
|
||||
typebot={publishedTypebot}
|
||||
|
@ -39,10 +39,10 @@ export const SubmissionsContent = ({
|
||||
|
||||
const { showToast } = useToast()
|
||||
|
||||
const blocksAndVariables = {
|
||||
blocks: [
|
||||
...(publishedTypebot?.blocks ?? []),
|
||||
...(linkedTypebots?.flatMap((t) => t.blocks) ?? []),
|
||||
const groupsAndVariables = {
|
||||
groups: [
|
||||
...(publishedTypebot?.groups ?? []),
|
||||
...(linkedTypebots?.flatMap((t) => t.groups) ?? []),
|
||||
].filter(isDefined),
|
||||
variables: [
|
||||
...(publishedTypebot?.variables ?? []),
|
||||
@ -50,7 +50,7 @@ export const SubmissionsContent = ({
|
||||
].filter(isDefined),
|
||||
}
|
||||
|
||||
const resultHeader = parseResultHeader(blocksAndVariables)
|
||||
const resultHeader = parseResultHeader(groupsAndVariables)
|
||||
|
||||
const { data, mutate, setSize, hasMore } = useResults({
|
||||
workspaceId,
|
||||
|
Reference in New Issue
Block a user