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