Skip to content

Commit

Permalink
Avoid crash on unregistered items, affecting makeCitationCluster()
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Aug 18, 2017
1 parent d72ba85 commit 15c11fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_layout.js
Expand Up @@ -73,7 +73,7 @@ CSL.Node.layout = {
func = function (state, Item) {

state.tmp.done_vars = [];
if (!state.tmp.just_looking && state.registry.registry[Item.id].parallel) {
if (!state.tmp.just_looking && state.registry.registry[Item.id] && state.registry.registry[Item.id].parallel) {
state.tmp.done_vars.push("first-reference-note-number");
}
//CSL.debug(" === init rendered_name === ");
Expand Down

0 comments on commit 15c11fb

Please sign in to comment.