fix(plugin-bust): Ported to v3 changes
This commit is contained in:
parent
31a28d2faa
commit
8632d6b233
1 changed files with 6 additions and 4 deletions
|
@ -5,10 +5,12 @@ export const plugin = {
|
|||
version,
|
||||
hooks: {
|
||||
preDraft: ({ settings }) => {
|
||||
if (settings.measurements) {
|
||||
if (typeof settings.measurements.bust === 'undefined') {
|
||||
settings.measurements.bust = settings.measurements.chest
|
||||
settings.measurements.chest = settings.measurements.highBust
|
||||
for (const set of settings) {
|
||||
if (set.measurements) {
|
||||
if (typeof set.measurements.bust === 'undefined') {
|
||||
set.measurements.bust = set.measurements.chest
|
||||
set.measurements.chest = set.measurements.highBust
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue