1
0
Fork 0

Merge pull request #3976 from BenJamesBen/title-cutlist-warning

fix(plugin-annotation,title): Supress warning message if cutlist not defined
This commit is contained in:
Enoch Riese 2023-05-16 19:48:42 -05:00 committed by GitHub
commit bf754a0d4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ const titleMacro = function (so, { points, scale, locale, store, part }) {
}
// Cut List instructions
const partCutlist = store.get(['cutlist', part.name])
const partCutlist = store.get(['cutlist', part.name], null)
// if there's a cutlist and it should be included
if (so.cutlist && partCutlist?.materials) {
// get the default cutonfold