more resistant code for color parsing error

このコミットが含まれているのは:
Xnuk Shuman 2022-12-20 03:11:34 +09:00
コミット 2fc0927b7a
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B810FA3E0390F1F2
1個のファイルの変更4行の追加0行の削除

ファイルの表示

@ -279,6 +279,9 @@ export default {
opacity
)
// Temporary patch for null-y value errors
if (layers.flat().some(v => v == null)) return acc
return {
...acc,
...textColors.reduce((acc, textColorKey) => {
@ -300,6 +303,7 @@ export default {
return Object.entries(ratios).reduce((acc, [k, v]) => { acc[k] = hints(v); return acc }, {})
} catch (e) {
console.warn('Failure computing contrasts', e)
return {}
}
},
previewRules () {