Harden Scattermind rank feedback candidate fallback
This commit is contained in:
@@ -497,7 +497,7 @@ function normalizeOptionIds(options = []) {
|
||||
}
|
||||
|
||||
function candidateArrayFrom(...entries) {
|
||||
return entries.find(entry => Array.isArray(entry?.items)) || null;
|
||||
return entries.find(entry => Array.isArray(entry?.items) && entry.items.length > 0) || null;
|
||||
}
|
||||
|
||||
function optionsFromBody(body = {}) {
|
||||
|
||||
Reference in New Issue
Block a user