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:
Rohan Verma 2026-03-25 12:57:14 -07:00 committed by GitHub
commit 8191eaf6cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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