mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
move to finally
This commit is contained in:
@@ -111,11 +111,11 @@ export default function CreateRecipeFromSessionModal({
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Failed to analyze messages:', error);
|
||||
clearInterval(stageInterval);
|
||||
setAnalysisStage('Analysis failed');
|
||||
setHasAnalyzed(true);
|
||||
})
|
||||
.finally(() => {
|
||||
clearInterval(stageInterval);
|
||||
setHasAnalyzed(true);
|
||||
setTimeout(() => {
|
||||
setIsAnalyzing(false);
|
||||
setAnalysisStage('');
|
||||
|
||||
Reference in New Issue
Block a user