Skip to content

Commit 49968d3

Browse files
authored
Don't throw install if config collection has not yet been created, fixes #2681 (#2687)
2 parents b84f859 + bd14041 commit 49968d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

migrations/20220908105711-convertarialabels.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ module.exports = {
1919
};
2020
const props = origin().db.getModel('config')?.schema?.tree?._accessibility?._ariaLevels?.properties;
2121
if(!props) {
22-
throw new Error(`Couldn't parse ARIA level defaults`);
22+
console.error(`Couldn't parse ARIA level defaults`);
23+
return;
2324
}
2425
const newDefaults = Object.entries(props).reduce((m, [k, v]) => Object.assign(m, { [k]: v.default }), {});
2526
const configs = await (collection.find().toArray());

0 commit comments

Comments
 (0)