From e3c168b7be5d2111c3dea414cc6d03164cc638ee Mon Sep 17 00:00:00 2001 From: sunghyunkang1111 <114709653+sunghyunkang1111@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:28:37 -0500 Subject: [PATCH] Reset the state to initial query every time (#1635) --- src/hooks/useQueryCopilot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useQueryCopilot.ts b/src/hooks/useQueryCopilot.ts index f2d023129..6c8a47d51 100644 --- a/src/hooks/useQueryCopilot.ts +++ b/src/hooks/useQueryCopilot.ts @@ -180,7 +180,7 @@ export const useQueryCopilot: QueryCopilotStore = create((set) => ({ showFeedbackModal: false, hideFeedbackModalForLikedQueries: false, correlationId: "", - query: "", + query: "SELECT * FROM c", selectedQuery: "", isGeneratingQuery: false, isGeneratingExplanation: false,