mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
Merge pull request #972 from LikiosSedo/fix/document-type-chip-dependency
fix: add missing type dependency in DocumentTypeChip truncation useEffect
This commit is contained in:
commit
8191eaf6cc
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ export function DocumentTypeChip({ type, className }: { type: string; className?
|
|||
checkTruncation();
|
||||
window.addEventListener("resize", checkTruncation);
|
||||
return () => window.removeEventListener("resize", checkTruncation);
|
||||
}, []);
|
||||
}, [type]);
|
||||
|
||||
const chip = (
|
||||
<span
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue