Skip to content

Commit

Permalink
fix(results): 🐛 Export all for free users
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 12, 2022
1 parent 348055d commit df3e926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/builder/components/shared/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const UnlockProPlanInfo = ({
bgColor={'blue.50'}
rounded="md"
justifyContent="space-between"
flexShrink={0}
>
<HStack>
<AlertIcon />
Expand Down
5 changes: 3 additions & 2 deletions apps/builder/layouts/results/SubmissionContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export const SubmissionsContent = ({

const handleExportSelection = async () => {
setIsExportLoading(true)
const isSelectAll = totalSelected === totalResults
const isSelectAll =
totalSelected === totalResults - (totalHiddenResults ?? 0)
const dataToUnparse = isSelectAll
? await getAllTableData()
: tableData.filter((_, idx) => selectedIndices.includes(idx))
Expand Down Expand Up @@ -145,7 +146,7 @@ export const SubmissionsContent = ({
}

return (
<Stack maxW="1200px" w="full" pb="28" px={['4', '0']}>
<Stack maxW="1200px" w="full" pb="28" px={['4', '0']} spacing="4">
{totalHiddenResults && (
<UnlockProPlanInfo
buttonLabel={`Unlock ${totalHiddenResults} results`}
Expand Down

4 comments on commit df3e926

@vercel
Copy link

@vercel vercel bot commented on df3e926 Apr 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on df3e926 Apr 12, 2022

@vercel
Copy link

@vercel vercel bot commented on df3e926 Apr 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on df3e926 Apr 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.