From c80a39f312c79416829b835d808bc0f451154531 Mon Sep 17 00:00:00 2001 From: Dawid Jankowiak Date: Fri, 20 Dec 2024 19:29:27 +0100 Subject: [PATCH] fix(boxai-sidebar): Fix typo in avatarURL name --- src/elements/content-sidebar/BoxAISidebar.tsx | 6 +++--- src/elements/content-sidebar/SidebarPanels.js | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/elements/content-sidebar/BoxAISidebar.tsx b/src/elements/content-sidebar/BoxAISidebar.tsx index 327ecbd2b7..0127933249 100644 --- a/src/elements/content-sidebar/BoxAISidebar.tsx +++ b/src/elements/content-sidebar/BoxAISidebar.tsx @@ -18,7 +18,7 @@ export interface BoxAISidebarContextValues { elementId: string, recordAction: (params: RecordActionType) => void, setCacheValue: (key: 'encodedSession' | 'questions', value: string | null | QuestionType[]) => void, - userInfo: { name: string, avatarUrl: string }, + userInfo: { name: string, avatarURL: string }, }; export const BoxAISidebarContext = React.createContext({ @@ -27,7 +27,7 @@ export const BoxAISidebarContext = React.createContext void, setCacheValue: (key: 'encodedSession' | 'questions', value: string | null | QuestionType[]) => void, } diff --git a/src/elements/content-sidebar/SidebarPanels.js b/src/elements/content-sidebar/SidebarPanels.js index 39103190fa..eb2d2b84c6 100644 --- a/src/elements/content-sidebar/SidebarPanels.js +++ b/src/elements/content-sidebar/SidebarPanels.js @@ -133,7 +133,10 @@ class SidebarPanels extends React.Component { versionsSidebar: ElementRefType = React.createRef(); - boxAiSidebarCache: { encodedSession?: string | null, questions?: QuestionType[] } = { encodedSession: null, questions: [] }; + boxAiSidebarCache: { encodedSession?: string | null, questions?: QuestionType[] } = { + encodedSession: null, + questions: [], + }; componentDidMount() { this.setState({ isInitialized: true }); @@ -266,7 +269,7 @@ class SidebarPanels extends React.Component { hasSidebarInitialized={isInitialized} ref={this.boxAISidebar} startMarkName={MARK_NAME_JS_LOADING_BOXAI} - userInfo={{name: currentUser?.name, avatarUrl: currentUser?.avatar_url}} + userInfo={{ name: currentUser?.name, avatarURL: currentUser?.avatar_url }} cache={this.boxAiSidebarCache} setCacheValue={this.setBoxAiSidebarCacheValue} {...boxAISidebarProps}