diff --git a/index.js b/index.js index c57face..d83ab7d 100644 --- a/index.js +++ b/index.js @@ -477,6 +477,11 @@ class Pass { */ __barcodeChooseBackward(format) { + if (format === null) { + this.props["barcode"] = undefined; + return this; + } + if (typeof format !== "string") { return this; }