From a873480c618d8e544cbe306371c7575baecd7b19 Mon Sep 17 00:00:00 2001 From: ljc1991 Date: Thu, 2 Nov 2023 17:29:43 +0800 Subject: [PATCH] fix: fix locale variable --- homepage/src/pages/admin/preview/CardPreview.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homepage/src/pages/admin/preview/CardPreview.jsx b/homepage/src/pages/admin/preview/CardPreview.jsx index 9bf2be6d..0b6821d8 100644 --- a/homepage/src/pages/admin/preview/CardPreview.jsx +++ b/homepage/src/pages/admin/preview/CardPreview.jsx @@ -3,7 +3,7 @@ import { processCard } from '../../../lib/processCard'; export const CardPreview = ({ entry, getAsset, assetsByLocale }) => { const locale = 'en'; - const assets = assetsByLocale['en']; + const assets = assetsByLocale[locale]; const data = entry.getIn(['data']).toJS(); const content = data.body;