We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8ff69 commit e8c559bCopy full SHA for e8c559b
src/detectors.js
@@ -46,7 +46,7 @@ exports.getUI = async function (context) {
46
})
47
)
48
49
- return Array.from(uis).sort((a, b) => (b.priority ?? 1) - (a.priority ?? 1))[0]
+ return Array.from(uis).sort((a, b) => (typeof b.priority !== 'undefined' ? b.priority : 1) - (typeof a.priority !== 'undefined' ? a.priority : 1))[0]
50
}
51
52
exports.getPlugins = async function (context) {
0 commit comments