1
0
Fork 0

fix(plugin-annotations): Prevent store.get() warning message if no grainOrigin is set

This commit is contained in:
Benjamin Fan 2024-02-17 19:21:44 -08:00
parent 369d95ceb0
commit a5af52728e

View file

@ -96,7 +96,7 @@ function setGrain(store, grain = false, origin = 'grainline') {
/** Method to retrieve the grainOrigin */ /** Method to retrieve the grainOrigin */
function getGrainOrigin(store) { function getGrainOrigin(store) {
return store.get(['cutlist', store.get('activePart'), 'grainOrigin']) return store.get(['cutlist', store.get('activePart'), 'grainOrigin'], null)
} }
/** Method to remove the grain info (called by rmgrainline and rmcutonfold macros) */ /** Method to remove the grain info (called by rmgrainline and rmcutonfold macros) */