From 29874827cfcdd110828ec12beddad1852a544642 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Tue, 17 Sep 2024 14:22:52 +0530 Subject: [PATCH] fix: Excel data not getting populated --- apps/widget/src/hooks/Phase1/usePhase1.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/widget/src/hooks/Phase1/usePhase1.ts b/apps/widget/src/hooks/Phase1/usePhase1.ts index 0ae18b45..fe65207d 100644 --- a/apps/widget/src/hooks/Phase1/usePhase1.ts +++ b/apps/widget/src/hooks/Phase1/usePhase1.ts @@ -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([