mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-06 06:12:40 +02:00
fix: add missing type dependency in DocumentTypeChip truncation check
Closes #946
This commit is contained in:
parent
a474c4651c
commit
2a7b50408f
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