mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
Merge pull request #1407 from mvanhorn/fix/citation-panel-expanded-state-1367
fix(citation-panel): reset expanded state when chunkId changes
This commit is contained in:
commit
d1d44dc4c5
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ export const CitationPanelContent: FC<CitationPanelContentProps> = ({ chunkId, o
|
|||
|
||||
useEffect(() => {
|
||||
setExpanded(false);
|
||||
}, []);
|
||||
}, [chunkId]);
|
||||
|
||||
const chunkWindow = expanded ? EXPANDED_CHUNK_WINDOW : DEFAULT_CHUNK_WINDOW;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue