Searching in matching questiondbs first

This commit is contained in:
mrfry 2021-02-10 17:29:17 +01:00
parent 87f9bbd3a3
commit 98f2cc4608
4 changed files with 68 additions and 22 deletions

View file

@ -564,7 +564,7 @@ if (!isMainThread) {
try {
qdbs.forEach((qdb) => {
if (searchIn === 'all' || searchIn.includes(qdb.index)) {
if (searchIn.length === 0 || searchIn.includes(qdb.index)) {
const res = doSearch(
qdb.data,
subjName,