Skip to content

Commit

Permalink
Fix error when compatible plugin is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed May 3, 2023
1 parent 474c344 commit 78bd35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function getAdditionalPrinters() {
for (let { pkg, formats } of additionalPrinterPlugins) {
let pluginPrinters = loadIfExists(pkg)?.printers
for (let format of formats) {
if (format in pluginPrinters) {
if (pluginPrinters && format in pluginPrinters) {
printers[format] = pluginPrinters[format]
}
}
Expand Down

0 comments on commit 78bd35b

Please sign in to comment.