Fix: search db is broken
This commit is contained in:
parent
831ca07c2d
commit
86ea846a89
|
@ -45,7 +45,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const results = [];
|
const results = [];
|
||||||
return styleManager.getAllStyles(styles => {
|
return styleManager.getAllStyles()
|
||||||
|
.then(styles => {
|
||||||
if (ids) {
|
if (ids) {
|
||||||
const idSet = new Set(ids);
|
const idSet = new Set(ids);
|
||||||
return styles.filter(s => idSet.has(s.id));
|
return styles.filter(s => idSet.has(s.id));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user