fix: address automated review feedback
This commit is contained in:
1 parent
254438247e
commit
aded62977e
4 files changed
+22
-6
No files matched your search
@@ -51,7 +51,7 @@ export const immichRouter = createTRPCRouter({
|
||||
.concat(createImmichIntegrationMiddleware("query"))
|
||||
.query(async ({ ctx, input }) => {
|
||||
if (ctx.integration.kind === "mock") {
|
||||
if (input.limit === undefined) return mockWidgetData.immichAlbums;
|
||||
if (input.limit === undefined) return [...mockWidgetData.immichAlbums];
|
||||
return mockWidgetData.immichAlbums.slice(0, input.limit);
|
||||
}
|
||||
const innerHandler = immichAlbumsRequestHandler.handler(
|
||||
|
||||
Reference in new issue
Block a user