From 0581cc6a613cfb52df3cc3e531590a3645d82a08 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 20 Dec 2025 02:26:46 +0100 Subject: [PATCH] chore: github copilot code review nitpicks --- apps/web/src/components/app/Sidebar/Sidebar.tsx | 2 +- apps/web/src/lib/instrumentation/syncStreamKeys.ts | 2 +- apps/web/tsconfig.json | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/app/Sidebar/Sidebar.tsx b/apps/web/src/components/app/Sidebar/Sidebar.tsx index 5ca3dfc..f8fc043 100644 --- a/apps/web/src/components/app/Sidebar/Sidebar.tsx +++ b/apps/web/src/components/app/Sidebar/Sidebar.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; -import { ChevronDown, ChevronUp, Radio } from 'lucide-react'; +import { ChevronDown, ChevronUp } from 'lucide-react'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { Sidebar as UISidebar, diff --git a/apps/web/src/lib/instrumentation/syncStreamKeys.ts b/apps/web/src/lib/instrumentation/syncStreamKeys.ts index 5bc8d68..c42b8be 100644 --- a/apps/web/src/lib/instrumentation/syncStreamKeys.ts +++ b/apps/web/src/lib/instrumentation/syncStreamKeys.ts @@ -18,7 +18,7 @@ export default async function syncStreamKeys() { const pipeline = redis.pipeline(); for (const key of keys) { - if (key.channel) { + if (key.channel && key.channel.name) { pipeline.set(`streamKey:${key.channel.name}`, key.key); } } diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 157508e..e517801 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -33,8 +33,9 @@ "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", - ".next/dev/types/**/*.ts" -, "tailwind.config.mts" ], + ".next/dev/types/**/*.ts", + "tailwind.config.mts" + ], "exclude": [ "node_modules" ]