Skip to content

Commit

Permalink
fix: Excel data not getting populated
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik committed Sep 17, 2024
1 parent 13f89c8 commit 2987482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/widget/src/hooks/Phase1/usePhase1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function usePhase1({ goNext, texts }: IUsePhase1Props) {
}

const foundTemplate = findTemplate();
if (foundTemplate && ((Array.isArray(data) && data.length > variables.baseIndex) || schema)) {
if (foundTemplate && (data || schema)) {
onDownload({ template: foundTemplate });
} else if (foundTemplate && foundTemplate.sampleFileUrl) {
getSignedUrl([
Expand Down

0 comments on commit 2987482

Please sign in to comment.