AI service errors take precedence over console errors in Quilly

This commit is contained in:
Alex Gleason committed 2025-12-21 04:46:34 -06:00
1 parent a957338afd
commit 1405d0a760
1 file changed
+3 -2
+3 -2
View File
@@ -96,8 +96,9 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
const [templateInfo, setTemplateInfo] = useState<{ name: string; description: string; url: string } | null>(null);
const [showTemplateInfo, setShowTemplateInfo] = useState(false);
// Determine which error to show - console error takes priority over AI errors
const displayError = consoleError || aiError;
// Determine which error to show - AI errors take priority over console errors
// since they are more immediately relevant to the user's current action
const displayError = aiError || consoleError;
// Use external state if provided, otherwise default to false
const isBuildLoading = externalIsBuildLoading || false;