Skip to content

Commit 2557032

Browse files
committed
fix: return ui.metas
1 parent 8c2aa41 commit 2557032

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/detectors.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ exports.getUI = async function (context) {
4646
})
4747
)
4848

49-
return Array.from(uis).sort((a, b) => (typeof b.priority !== 'undefined' ? b.priority : 1) - (typeof a.priority !== 'undefined' ? a.priority : 1))[0]
49+
const ui = Array.from(uis).sort((a, b) => (typeof b.priority !== 'undefined' ? b.priority : 1) - (typeof a.priority !== 'undefined' ? a.priority : 1))[0]
50+
if (ui) {
51+
return ui.metas
52+
}
53+
return null
5054
}
5155

5256
exports.getPlugins = async function (context) {

0 commit comments

Comments
 (0)