@manuscripts/transform 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,7 +197,7 @@ exports.jatsBodyTransformations = {
197
197
  }
198
198
  },
199
199
  moveBibliographyIntoContainer(doc, backmatterContainer, references, createElement) {
200
- if (references) {
200
+ if (references && references.length) {
201
201
  backmatterContainer.appendChild(this.createBibliography(doc, references, createElement));
202
202
  }
203
203
  },
@@ -194,7 +194,7 @@ export const jatsBodyTransformations = {
194
194
  }
195
195
  },
196
196
  moveBibliographyIntoContainer(doc, backmatterContainer, references, createElement) {
197
- if (references) {
197
+ if (references && references.length) {
198
198
  backmatterContainer.appendChild(this.createBibliography(doc, references, createElement));
199
199
  }
200
200
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "1.5.2",
4
+ "version": "1.5.3",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -82,4 +82,4 @@
82
82
  "prosemirror-state": "^1.4.2",
83
83
  "prosemirror-view": "^1.29.1"
84
84
  }
85
- }
85
+ }