Skip to content

Commit

Permalink
fix: Icons were no longer appearing due to incorrect naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Inlustra committed Jun 29, 2021
1 parent cf94b12 commit c16a93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/schema/resolvers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export const Subscription: SubscriptionResolvers = {
};

export const Item: Partial<ItemResolvers> = {
iconName: ({ icon }) => icon?.split("/")[0] ?? null,
iconPack: ({ icon }) => icon?.split("/")[1] ?? null,
iconName: ({ icon }) => icon?.split("/")[1] ?? null,
iconPack: ({ icon }) => icon?.split("/")[0] ?? null,
children: async ({ name }, __, { itemServer }) => {
if (!name) return [];
return await firstValueFrom(
Expand Down

0 comments on commit c16a93d

Please sign in to comment.