From 62553588078728ac462cda27b9ddd45f5a6412aa Mon Sep 17 00:00:00 2001 From: aidahosa1 Date: Thu, 19 Sep 2024 00:48:42 -0400 Subject: fixed icon disapearring bug --- src/client/views/FilterPanel.tsx | 2 +- src/client/views/pdf/GPTPopup/GPTPopup.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/FilterPanel.tsx b/src/client/views/FilterPanel.tsx index 3795a4a6d..b6bea1d4b 100644 --- a/src/client/views/FilterPanel.tsx +++ b/src/client/views/FilterPanel.tsx @@ -92,7 +92,6 @@ const HotKeyIconButton: React.FC = observer(({ hotKey /*, sel const myDoc = myHotKeyDoc(); Doc.UserDoc().myFilterHotKeyTitles = new List(hotKeys.map(k => (k === hotKey ? state.myHotKey : k))); Doc.UserDoc()[state.myHotKey] = StrCast(Doc.UserDoc()[hotKey]); - Doc.UserDoc()[hotKey] = ''; myDoc.title = state.myHotKey; myDoc.toolTip = `Click to toggle the ${state.myHotKey}'s group's visibility`; }, ''); @@ -196,6 +195,7 @@ const HotKeyIconButton: React.FC = observer(({ hotKey /*, sel ); }); + interface filterProps { Document: Doc; } diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index ed3f99377..d5f5f620c 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -74,7 +74,7 @@ export class GPTPopup extends ObservableReactComponent { }; @observable public dataJson: string = ''; - public dataChatPrompt: string | null = null; + public dataChatPrompt: string | undefined = undefined; @action public setDataJson = (text: string) => { if (text === '') this.dataChatPrompt = ''; -- cgit v1.2.3-70-g09d2