fix: dashboards limit exceeds API max (500→200)
Sentiment Heatmap and Prediction Accuracy passed limit=500 but the trends and recommendations endpoints enforce limit<=200, causing a 422 validation error that made both panels show blank.
This commit is contained in:
@@ -125,7 +125,7 @@ function SymbolOverview({ ticker }: { ticker: string }) {
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
function SentimentHeatmap() {
|
function SentimentHeatmap() {
|
||||||
const { data: trends, isLoading } = useTrends({ limit: 500 });
|
const { data: trends, isLoading } = useTrends({ limit: 200 });
|
||||||
const { data: companies } = useCompanies();
|
const { data: companies } = useCompanies();
|
||||||
|
|
||||||
if (isLoading) return <LoadingSpinner />;
|
if (isLoading) return <LoadingSpinner />;
|
||||||
@@ -205,7 +205,7 @@ function SentimentHeatmap() {
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
function PredictionAccuracy() {
|
function PredictionAccuracy() {
|
||||||
const { data: recs, isLoading } = useRecommendations({ limit: 500 });
|
const { data: recs, isLoading } = useRecommendations({ limit: 200 });
|
||||||
|
|
||||||
if (isLoading) return <LoadingSpinner />;
|
if (isLoading) return <LoadingSpinner />;
|
||||||
if (!recs?.length) return <p className="text-sm text-gray-500">No recommendation data available</p>;
|
if (!recs?.length) return <p className="text-sm text-gray-500">No recommendation data available</p>;
|
||||||
|
|||||||
Reference in New Issue
Block a user