From 611881839990a284ea15c8465dc42f1326f8a98c Mon Sep 17 00:00:00 2001
From: omagdy7 <omar.professional8777@gmail.com>
Date: Thu, 23 Nov 2023 19:28:27 +0200
Subject: Enhanced flashcard genertation

---
 src/components/OllamaCommandPallete.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/OllamaCommandPallete.tsx')

diff --git a/src/components/OllamaCommandPallete.tsx b/src/components/OllamaCommandPallete.tsx
index b251318..10e3418 100644
--- a/src/components/OllamaCommandPallete.tsx
+++ b/src/components/OllamaCommandPallete.tsx
@@ -6,7 +6,7 @@ import {
   CommandItem,
   CommandList,
 } from "@/components/ui/command"
-import { convertToFlashCard, DivideTaskIntoSubTasks, summarize, summarizeBlock } from "@/ollama";
+import { convertToFlashCard, convertToFlashCardCurrentBlock, DivideTaskIntoSubTasks, summarize, summarizeBlock } from "@/ollama";
 import { PromptAI } from "./PromptAI";
 
 export function OllamaCommandPallete({ options, theme }: { options: string[], theme: string }) {
@@ -30,7 +30,7 @@ export function OllamaCommandPallete({ options, theme }: { options: string[], th
         break;
       case "convert to flash card":
         logseq.hideMainUI()
-        convertToFlashCard()
+        convertToFlashCardCurrentBlock()
         break;
       default:
         break;
-- 
cgit v1.2.3

