diff --git a/src/App.tsx b/src/App.tsx index d9b1657..6e46685 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2437,7 +2437,11 @@ export default function App() { className="button" type="button" onClick={isConverting ? handleCancelConversion : handleOpenAiToolsMenu} - disabled={isConverting ? false : !ollamaModel || isViewingHistory || !hasText} + disabled={ + isConverting + ? false + : !ollamaModel || isViewingHistory || !hasText || aiPromptTemplates.length === 0 + } > {isConverting ? "Cancel AI Edit" : "AI Tools"}