Skip to content

Commit

Permalink
fixed loading screens on error encounter
Browse files Browse the repository at this point in the history
  • Loading branch information
Shriya-Chauhan committed Dec 1, 2024
1 parent 8b98265 commit 97b9a5f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modelina-website/src/components/playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,13 @@ const Playground: React.FC<ModelinaPlaygroundProps> = (props) => {
setError(true);
setErrorMessage('Input is not a correct AsyncAPI document, so it cannot be processed.');
setStatusCode(500);
setOutputLoading(true);
});
}
} catch (e: any) {
console.error(e);
setError(true);
setErrorMessage('Input is not a correct AsyncAPI document, so it cannot be processed.');
setStatusCode(400);
setOutputLoading(true);
}
};

Expand Down

0 comments on commit 97b9a5f

Please sign in to comment.