mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 14:05:24 +02:00
fix: resolve asins.map crash in experiment detail for legacy records
This commit is contained in:
@@ -490,7 +490,7 @@ const ExperimentDetail: React.FC<ExperimentDetailProps> = ({ experimentId, onClo
|
|||||||
{/* ASINs */}
|
{/* ASINs */}
|
||||||
<DetailSection title="📦 Target ASINs">
|
<DetailSection title="📦 Target ASINs">
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-2">
|
||||||
{experiment.asins.map((asin, idx) => (
|
{(experiment.asins || []).map((asin, idx) => (
|
||||||
<span
|
<span
|
||||||
key={idx}
|
key={idx}
|
||||||
className="px-2.5 py-1 bg-slate-800 border border-slate-600 rounded-lg text-sm text-slate-300 font-mono"
|
className="px-2.5 py-1 bg-slate-800 border border-slate-600 rounded-lg text-sm text-slate-300 font-mono"
|
||||||
|
|||||||
Reference in New Issue
Block a user