diff options
author | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-09-19 00:48:42 -0400 |
---|---|---|
committer | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-09-19 00:48:42 -0400 |
commit | 62553588078728ac462cda27b9ddd45f5a6412aa (patch) | |
tree | c17984aa29c57c2cad53df2d7373a8649f84b93c | |
parent | 18056735bdeddca55f530d41259874a4ed3ae200 (diff) |
fixed icon disapearring bug
-rw-r--r-- | src/client/views/FilterPanel.tsx | 2 | ||||
-rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
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<HotKeyButtonProps> = observer(({ hotKey /*, sel const myDoc = myHotKeyDoc(); Doc.UserDoc().myFilterHotKeyTitles = new List<string>(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<HotKeyButtonProps> = observer(({ hotKey /*, sel </div> ); }); + 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<GPTPopupProps> { }; @observable public dataJson: string = ''; - public dataChatPrompt: string | null = null; + public dataChatPrompt: string | undefined = undefined; @action public setDataJson = (text: string) => { if (text === '') this.dataChatPrompt = ''; |