From 21b59887998ed042aff2f6ccbbfbbd327f49eee0 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Thu, 23 Nov 2023 20:33:10 +0200 Subject: Applying DRY principle and removing duplicate code --- 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 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() -- cgit v1.2.3