Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
fix: prevent footnotes from being inserted with an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford committed Nov 16, 2016
1 parent e01862d commit 50d0080
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/js/reference-list/components/ReferenceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export class ReferenceList extends React.Component<{store: Store}, {}> {

preprocess.then((data) => {

if (data.length === 0) return;
this.props.store.citations.addItems(data);

data = data.reduce((prev, curr) => {
Expand Down

0 comments on commit 50d0080

Please sign in to comment.