aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-11-23 20:33:10 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-11-23 20:33:10 +0200
commit21b59887998ed042aff2f6ccbbfbbd327f49eee0 (patch)
tree51cd523197a14dd78be58ec27751d947566314ef /src/components
parentd27f32ae431cca78cda7b64150ae3c29008e9020 (diff)
downloadollama-logseq-21b59887998ed042aff2f6ccbbfbbd327f49eee0.tar.xz
ollama-logseq-21b59887998ed042aff2f6ccbbfbbd327f49eee0.zip
Applying DRY principle and removing duplicate code
Diffstat (limited to 'src/components')
-rw-r--r--src/components/OllamaCommandPallete.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/OllamaCommandPallete.tsx b/src/components/OllamaCommandPallete.tsx
index 10e3418..346fb1e 100644
--- a/src/components/OllamaCommandPallete.tsx
+++ b/src/components/OllamaCommandPallete.tsx
@@ -6,7 +6,7 @@ import {
CommandItem,
CommandList,
} from "@/components/ui/command"
-import { convertToFlashCard, convertToFlashCardCurrentBlock, DivideTaskIntoSubTasks, summarize, summarizeBlock } from "@/ollama";
+import { convertToFlashCard, convertToFlashCardCurrentBlock, DivideTaskIntoSubTasks, DivideTaskIntoSubTasksCurrentBlock, summarize, summarizeBlock } from "@/ollama";
import { PromptAI } from "./PromptAI";
export function OllamaCommandPallete({ options, theme }: { options: string[], theme: string }) {
@@ -18,7 +18,7 @@ export function OllamaCommandPallete({ options, theme }: { options: string[], th
switch (selection) {
case "divide into subtasks":
logseq.hideMainUI()
- DivideTaskIntoSubTasks()
+ DivideTaskIntoSubTasksCurrentBlock()
break;
case "summarize":
logseq.hideMainUI()