saveStyle's codeIsUpdated can be true or false, not undefined
This commit is contained in:
parent
19754a5a90
commit
ac5e9b965a
|
@ -260,7 +260,7 @@ function saveStyle(style) {
|
||||||
if (reason == 'update-digest' && oldStyle.originalDigest == style.originalDigest) {
|
if (reason == 'update-digest' && oldStyle.originalDigest == style.originalDigest) {
|
||||||
return style;
|
return style;
|
||||||
}
|
}
|
||||||
codeIsUpdated = !existed || style.sections && !styleSectionsEqual(style, oldStyle);
|
codeIsUpdated = !existed || 'sections' in style && !styleSectionsEqual(style, oldStyle);
|
||||||
style = Object.assign({}, oldStyle, style);
|
style = Object.assign({}, oldStyle, style);
|
||||||
return write(style, store);
|
return write(style, store);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user