1
0
Fork 0

fixes #3957 re-use existing part for out-of-cycle draft

This commit is contained in:
Enoch Riese 2023-05-02 12:25:04 -05:00
parent 6919a1bf57
commit 282696f1cd

View file

@ -113,7 +113,8 @@ PatternDrafter.prototype.__createPartForSet = function (partName, set = 0) {
}
// Create parts
this.activeStore.log.debug(`📦 Creating part \`${partName}\` (set ${set})`)
this.pattern.parts[set][partName] = this.__createPartWithContext(partName, set)
this.pattern.parts[set][partName] =
this.pattern.parts[set][partName] || this.__createPartWithContext(partName, set)
// Handle inject/inheritance
const parent = this.pattern.config.inject[partName]