mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
🐛 Fixed "Cannot destructure property" error when overwriting active theme
refs https://github.com/TryGhost/action-deploy-theme/issues/45 - added missing `throw error` in the `setFromZip()` catch which was hiding the underlying error when a theme uploaded and saved successfully but other code had failed - fixed incorrect method name `activator.activateFromOverride` -> `activator.activateFromAPIOverride`
This commit is contained in:
parent
fa231a1995
commit
f9a3f7d955
@ -81,7 +81,7 @@ module.exports = {
|
||||
// CASE: if this is the active theme, we are overriding
|
||||
if (overrideTheme) {
|
||||
debug('setFromZip Theme is active alreadu');
|
||||
activator.activateFromOverride(themeName, loadedTheme, checkedTheme);
|
||||
activator.activateFromAPIOverride(themeName, loadedTheme, checkedTheme);
|
||||
}
|
||||
|
||||
// @TODO: unify the name across gscan and Ghost!
|
||||
@ -98,6 +98,8 @@ module.exports = {
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user