fix(plugin-annotations): Prevent store.get() warning message if no grainOrigin is set
This commit is contained in:
parent
369d95ceb0
commit
a5af52728e
1 changed files with 1 additions and 1 deletions
|
@ -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) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue