parent
cb3e9973bd
commit
9be2f942c7
|
@ -62,7 +62,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function save(style) {
|
function save(style) {
|
||||||
if (!style.sourceCode) {
|
// restore if stripped by getStyleWithNoCode
|
||||||
|
if (typeof style.sourceCode !== 'string') {
|
||||||
style.sourceCode = cachedStyles.byId.get(style.id).sourceCode;
|
style.sourceCode = cachedStyles.byId.get(style.id).sourceCode;
|
||||||
}
|
}
|
||||||
return buildMeta(style)
|
return buildMeta(style)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user