fix(v2): add default value for options in theme classic [ci skip] (#2688)

This commit is contained in:
Alexey Pyltsyn 2020-04-28 09:30:18 +03:00 committed by GitHub
parent 94b712d4fd
commit ab5590bafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ module.exports = function (context, options) {
defaultDarkMode = false,
prism: {additionalLanguages = []} = {},
} = themeConfig || {};
const {customCss} = options;
const {customCss} = options || {};
return {
name: 'docusaurus-theme-classic',