fix(plugin-title): Supress warning message if cutlist not defined
This commit is contained in:
parent
92a51ec163
commit
39ad4bbef2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue