mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 09:16:22 +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();
|
checkTruncation();
|
||||||
window.addEventListener("resize", checkTruncation);
|
window.addEventListener("resize", checkTruncation);
|
||||||
return () => window.removeEventListener("resize", checkTruncation);
|
return () => window.removeEventListener("resize", checkTruncation);
|
||||||
}, []);
|
}, [type]);
|
||||||
|
|
||||||
const chip = (
|
const chip = (
|
||||||
<span
|
<span
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue