fix: add missing type dependency in DocumentTypeChip truncation check

Closes #946
This commit is contained in:
likiosliu 2026-03-25 12:32:56 +08:00
parent a474c4651c
commit 2a7b50408f

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