From 9dd64a78b9bc4249da8d88c26ade09a7852489eb Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Wed, 10 Feb 2021 09:16:08 -0800 Subject: [PATCH] fix: convert config before passing to resolveBackend (#4948) --- cypress/run.js | 2 +- packages/netlify-cms-core/src/actions/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/run.js b/cypress/run.js index 7a08479f2fdb..a1afed14d1eb 100644 --- a/cypress/run.js +++ b/cypress/run.js @@ -38,4 +38,4 @@ const runCypress = async () => { } }; -runCypress().catch(error => console.error(error)); +runCypress(); diff --git a/packages/netlify-cms-core/src/actions/config.js b/packages/netlify-cms-core/src/actions/config.js index 534d4c1cf47b..d5fdc7227358 100644 --- a/packages/netlify-cms-core/src/actions/config.js +++ b/packages/netlify-cms-core/src/actions/config.js @@ -208,7 +208,7 @@ export function applyDefaults(originalConfig) { throwOnMissingDefaultLocale(i18n); - const backend = resolveBackend(config); + const backend = resolveBackend(fromJS(config)); for (const collection of config.collections) { if (!('publish' in collection)) {