diff --git a/packages/trpc/server/routers/viewer/apps.tsx b/packages/trpc/server/routers/viewer/apps.tsx index 5455663b4c..1c8962ee25 100644 --- a/packages/trpc/server/routers/viewer/apps.tsx +++ b/packages/trpc/server/routers/viewer/apps.tsx @@ -129,7 +129,7 @@ export const appsRouter = router({ }, create: { slug: input.slug, - dirName: appMetadata?.dirName || "", + dirName: appMetadata?.dirName || appMetadata?.slug || "", categories: (appMetadata?.categories as AppCategories[]) || ([appMetadata?.category] as AppCategories[]) || @@ -261,7 +261,7 @@ export const appsRouter = router({ update: { keys }, create: { slug: input.slug, - dirName: appMetadata?.dirName || "", + dirName: appMetadata?.dirName || appMetadata?.slug || "", categories: (appMetadata?.categories as AppCategories[]) || ([appMetadata?.category] as AppCategories[]) ||