Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit f51281f

Browse files
authored
Merge pull request #1562 from ecency/bugfix/sidebar-npe-error
Fixed sidebar error when open it immediately after page load
2 parents bd55af8 + 585ccf0 commit f51281f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/common/components/decks/deck-toolbar/deck-toolbar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export const DeckToolbar = ({ isExpanded, setIsExpanded, history }: Props) => {
8989
setIsExpanded={setIsExpanded}
9090
/>
9191
<DeckToolbarBaseActions
92-
history={history}
9392
isExpanded={isExpanded}
9493
history={history}
9594
setIsExpanded={setIsExpanded}

src/common/components/navbar/sidebar/navbar-side-user-info.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function NavbarSideUserInfo({ history }: { history: History }) {
1616
<ProfileLink history={history} username={activeUser!.username} addAccount={addAccount}>
1717
<UserAvatar username={activeUser!.username} size="medium" />
1818
</ProfileLink>
19-
{activeUser!.data && (
19+
{activeUser?.data.__loaded && (
2020
<div>
2121
<div className="font-semibold">{activeUser?.username}</div>
2222
<div className="flex flex-col text-xs">

0 commit comments

Comments
 (0)