We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b84f859 + bd14041 commit 49968d3Copy full SHA for 49968d3
1 file changed
migrations/20220908105711-convertarialabels.js
@@ -19,7 +19,8 @@ module.exports = {
19
};
20
const props = origin().db.getModel('config')?.schema?.tree?._accessibility?._ariaLevels?.properties;
21
if(!props) {
22
- throw new Error(`Couldn't parse ARIA level defaults`);
+ console.error(`Couldn't parse ARIA level defaults`);
23
+ return;
24
}
25
const newDefaults = Object.entries(props).reduce((m, [k, v]) => Object.assign(m, { [k]: v.default }), {});
26
const configs = await (collection.find().toArray());
0 commit comments