Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: remove ts ignore

shuai2492ebb6914a
diff --git a/ui/src/components/Comment/index.scss b/ui/src/components/Comment/index.scss
index fd485f24..04dd1b3e 100644
--- a/ui/src/components/Comment/index.scss
+++ b/ui/src/components/Comment/index.scss
@@ -21,9 +21,3 @@
}
}
}
-
-.comment-tip {
- .tooltip-inner {
- max-width: fit-content;
- }
-}
diff --git a/ui/src/components/HttpErrorContent/index.tsx b/ui/src/components/HttpErrorContent/index.tsx
index abbb976c..51ce4bcc 100644
--- a/ui/src/components/HttpErrorContent/index.tsx
+++ b/ui/src/components/HttpErrorContent/index.tsx
@@ -8,15 +8,13 @@ const Index = ({ httpCode = '', errMsg = '' }) => {
const { t } = useTranslation('translation', { keyPrefix: 'page_error' });
useEffect(() => {
// auto height of container
- const pageWrap = document.querySelector('.page-wrap');
+ const pageWrap = document.querySelector('.page-wrap') as HTMLElement;
if (pageWrap) {
- // @ts-ignore
pageWrap.style.display = 'contents';
}
return () => {
if (pageWrap) {
- // @ts-ignore
pageWrap.style.display = 'block';
}
};