2
0

refactor: ♻️ Rename step to block

This commit is contained in:
Baptiste Arnaud
2022-06-11 07:27:38 +02:00
parent 8751766d0e
commit 2df8338505
297 changed files with 4292 additions and 3989 deletions

View File

@ -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,