refactor: streamline widget and integration architecture
This commit is contained in:
1 parent
ec295fe26e
commit
425cb653a1
243 files changed
+5722
-2255
No files matched your search
@@ -124,6 +124,7 @@ export const placeAllWidgetsAsync = async (
|
||||
}
|
||||
}
|
||||
|
||||
let placedAppCount = 0;
|
||||
for (const app of allApps) {
|
||||
await placeWidgetAsync(
|
||||
db,
|
||||
@@ -133,6 +134,7 @@ export const placeAllWidgetsAsync = async (
|
||||
superjson.stringify({ appId: app.id, openInNewTab: true, showTitle: true }),
|
||||
{ width: 1, height: 1 },
|
||||
);
|
||||
placedAppCount += 1;
|
||||
}
|
||||
|
||||
const bookmarkAppNames = new Set(defaultBookmarkApps.map((bookmark) => bookmark.name));
|
||||
@@ -153,5 +155,5 @@ export const placeAllWidgetsAsync = async (
|
||||
});
|
||||
}
|
||||
|
||||
return placedWidgets.size + allApps.length;
|
||||
return placedWidgets.size + placedAppCount;
|
||||
};
|
||||
Reference in new issue
Block a user