Plugspace robustness improvement
This commit is contained in:
parent
3409a1215e
commit
ac9c2696ec
@ -29,9 +29,13 @@ export class PlugSpacePrimitives implements SpacePrimitives {
|
|||||||
let allPages = new Set<PageMeta>();
|
let allPages = new Set<PageMeta>();
|
||||||
for (let { plug, name, operation } of this.hook.spaceFunctions) {
|
for (let { plug, name, operation } of this.hook.spaceFunctions) {
|
||||||
if (operation === "listPages") {
|
if (operation === "listPages") {
|
||||||
|
try {
|
||||||
for (let pm of await plug.invoke(name, [])) {
|
for (let pm of await plug.invoke(name, [])) {
|
||||||
allPages.add(pm);
|
allPages.add(pm);
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error("Error listing pages", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let result = await this.wrapped.fetchPageList();
|
let result = await this.wrapped.fetchPageList();
|
||||||
|
Loading…
Reference in New Issue
Block a user