From 5ff66fd033ad64efa7ae16575ec868eed6cabadf Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 28 Sep 2024 13:36:43 +0100 Subject: [PATCH] fix: JS errors --- .../js/src/common/components/UserSearchResult.tsx | 13 ++++++++++++- framework/core/js/src/forum/app.ts | 2 -- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/framework/core/js/src/common/components/UserSearchResult.tsx b/framework/core/js/src/common/components/UserSearchResult.tsx index 9612073c7..b257175af 100644 --- a/framework/core/js/src/common/components/UserSearchResult.tsx +++ b/framework/core/js/src/common/components/UserSearchResult.tsx @@ -8,6 +8,7 @@ import username from '../../common/helpers/username'; import highlight from '../../common/helpers/highlight'; import classList from '../../common/utils/classList'; import type Mithril from 'mithril'; +import type ForumApplication from '../../forum/ForumApplication'; export interface IUserSearchResultAttrs extends ComponentAttrs { user: User; @@ -26,7 +27,17 @@ export default class UserSearchResult - {this.attrs.onclick ? : {this.content(vnode)}} + {this.attrs.onclick ? ( + + ) : ( + + {this.content(vnode)} + + )} ); } diff --git a/framework/core/js/src/forum/app.ts b/framework/core/js/src/forum/app.ts index 74cd0ebe8..83d12b935 100644 --- a/framework/core/js/src/forum/app.ts +++ b/framework/core/js/src/forum/app.ts @@ -1,7 +1,5 @@ import Forum from './ForumApplication'; -console.error('No'); - const app = new Forum(); // @ts-expect-error We need to do this for backwards compatibility purposes.