Skip to content

Commit

Permalink
fix: fix locale variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ljc1991 committed Nov 2, 2023
1 parent 2805feb commit a873480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homepage/src/pages/admin/preview/CardPreview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a873480

Please sign in to comment.