Skip to content

Commit

Permalink
fix: convert config before passing to resolveBackend (#4948)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah authored Feb 10, 2021
1 parent 521896c commit 9dd64a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ const runCypress = async () => {
}
};

runCypress().catch(error => console.error(error));
runCypress();
2 changes: 1 addition & 1 deletion packages/netlify-cms-core/src/actions/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9dd64a7

Please sign in to comment.