Skip to content

Commit 91ba714

Browse files
fix(boxai-sidebar): Fix typo in avatarURL name (#3810)
* fix(boxai-sidebar): Fix typo in avatarURL name * Fix lint BoxAISidebar.tsx * Fix lint * Fix lint --------- Co-authored-by: karolinaru <[email protected]>
1 parent b3afcd8 commit 91ba714

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/elements/content-sidebar/BoxAISidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface BoxAISidebarContextValues {
1919
isStopResponseEnabled: boolean;
2020
recordAction: (params: RecordActionType) => void;
2121
setCacheValue: (key: 'encodedSession' | 'questions', value: string | null | QuestionType[]) => void;
22-
userInfo: { name: string; avatarUrl: string };
22+
userInfo: { name: string, avatarURL: string };
2323
}
2424

2525
export const BoxAISidebarContext = React.createContext<BoxAISidebarContextValues>({
@@ -29,7 +29,7 @@ export const BoxAISidebarContext = React.createContext<BoxAISidebarContextValues
2929
isStopResponseEnabled: false,
3030
recordAction: noop,
3131
setCacheValue: noop,
32-
userInfo: { name: '', avatarUrl: '' },
32+
userInfo: { name: '', avatarURL: '' },
3333
});
3434

3535
export interface BoxAISidebarProps {
@@ -66,7 +66,7 @@ export interface BoxAISidebarProps {
6666
isResetChatEnabled: boolean;
6767
isStopResponseEnabled?: boolean;
6868
isStreamingEnabled: boolean;
69-
userInfo: { name: ''; avatarUrl: '' };
69+
userInfo: { name: string, avatarURL: string };
7070
recordAction: (params: RecordActionType) => void;
7171
setCacheValue: (key: 'encodedSession' | 'questions', value: string | null | QuestionType[]) => void;
7272
}

src/elements/content-sidebar/SidebarPanels.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ class SidebarPanels extends React.Component<Props, State> {
133133

134134
versionsSidebar: ElementRefType = React.createRef();
135135

136-
boxAiSidebarCache: { encodedSession?: string | null, questions?: QuestionType[] } = { encodedSession: null, questions: [] };
136+
boxAiSidebarCache: { encodedSession?: string | null, questions?: QuestionType[] } = {
137+
encodedSession: null,
138+
questions: [],
139+
};
137140

138141
componentDidMount() {
139142
this.setState({ isInitialized: true });
@@ -266,7 +269,7 @@ class SidebarPanels extends React.Component<Props, State> {
266269
hasSidebarInitialized={isInitialized}
267270
ref={this.boxAISidebar}
268271
startMarkName={MARK_NAME_JS_LOADING_BOXAI}
269-
userInfo={{name: currentUser?.name, avatarUrl: currentUser?.avatar_url}}
272+
userInfo={{ name: currentUser?.name, avatarURL: currentUser?.avatar_url }}
270273
cache={this.boxAiSidebarCache}
271274
setCacheValue={this.setBoxAiSidebarCacheValue}
272275
{...boxAISidebarProps}

0 commit comments

Comments
 (0)