fix(plugin-buttons): Reference settings directly
This commit is contained in:
parent
3644880963
commit
3af542c592
1 changed files with 6 additions and 6 deletions
|
@ -4,12 +4,12 @@ export const plugin = {
|
||||||
name,
|
name,
|
||||||
version,
|
version,
|
||||||
hooks: {
|
hooks: {
|
||||||
preDraft: ({ settings }) => {
|
preDraft: function ({ settings }) {
|
||||||
for (const set of settings) {
|
for (const i in settings) {
|
||||||
if (set.measurements) {
|
if (settings[i].measurements) {
|
||||||
if (typeof set.measurements.bust === 'undefined') {
|
if (typeof settings[i].measurements.bust === 'undefined') {
|
||||||
set.measurements.bust = set.measurements.chest
|
settings[i].measurements.bust = settings[i].measurements.chest
|
||||||
set.measurements.chest = set.measurements.highBust
|
settings[i].measurements.chest = settings[i].measurements.highBust
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue