Describe the bug
When cms is being hot-reloaded, config validation results in the following error:
Unhandled Runtime Error
Error: 'collections[0].view_filters' should NOT have fewer than 1 items
'collections[0].view_groups' should NOT have fewer than 1 items
To Reproduce
Expected behavior
There shouldn't be any error after hot reload
Additional context
That probably happens because after hot reload we validate existing config (which is normalized and to which defaults are applied), where each collection has view_filters and view_groups equal to empty array. I think this PR https://github.com/netlify/netlify-cms/pull/4807 should fix it.
Thanks @smashercosmo, I'm planning on reviewing your PRs soon (either today or early next week).