Skip to content

Commit

Permalink
fixes bug with story gens
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmullen committed Oct 12, 2021
1 parent dcc8ec2 commit 5f410fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cms/src/components/editors/VariableEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ class VariableEditor extends Component {
// Use urlSwap to swap ANY instances of variables between brackets (e.g. <varname>)
// With its corresponding value. Same goes for locale
const lookup = {locale: localeDefault};
previews.forEach((p, i) => {
const thesePreviews = previews || [];
thesePreviews.forEach((p, i) => {
if (i === 0) {
lookup.id = p.id;
}
Expand Down

0 comments on commit 5f410fa

Please sign in to comment.