fix(web): correct some type issues with appShellProps

This commit is contained in:
41666 2021-03-13 19:21:48 -05:00
parent 219ea2228b
commit d0f9010ea8
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ export const AppShell = (props: AppShellProps) => (
guilds={props.guilds || []} guilds={props.guilds || []}
activeGuildId={props.activeGuildId || null} activeGuildId={props.activeGuildId || null}
user={props.user} user={props.user}
recentGuilds={props.recentGuilds} recentGuilds={props.recentGuilds || []}
/> />
) : ( ) : (
<Masthead.Guest /> <Masthead.Guest />

View file

@ -7,8 +7,8 @@ type ServerTemplateProps = Omit<AppShellProps, 'children'>;
export const ServersTemplate = (props: ServerTemplateProps) => ( export const ServersTemplate = (props: ServerTemplateProps) => (
<AppShell {...props} disableGuildPicker> <AppShell {...props} disableGuildPicker>
<ServersListing <ServersListing
guilds={props.guilds} guilds={props.guilds || []}
recentGuilds={props.recentGuilds} recentGuilds={props.recentGuilds || []}
></ServersListing> ></ServersListing>
</AppShell> </AppShell>
); );