@@ -23,10 +23,11 @@ import { getTabIndex } from "@/helpers/tab-indices.helper";
2323import { useInstance , useWorkspace } from "@/hooks/store" ;
2424import useKeypress from "@/hooks/use-keypress" ;
2525import { usePlatformOS } from "@/hooks/use-platform-os" ;
26+ // plane web services
27+ import { WorkspaceService } from "@/plane-web/services" ;
2628// services
2729import { AIService } from "@/services/ai.service" ;
2830import { FileService } from "@/services/file.service" ;
29- import { ProjectService } from "@/services/project" ;
3031
3132type TIssueDescriptionEditorProps = {
3233 control : Control < TIssue > ;
@@ -48,9 +49,9 @@ type TIssueDescriptionEditorProps = {
4849} ;
4950
5051// services
52+ const workspaceService = new WorkspaceService ( ) ;
5153const aiService = new AIService ( ) ;
5254const fileService = new FileService ( ) ;
53- const projectService = new ProjectService ( ) ;
5455
5556export const IssueDescriptionEditor : React . FC < TIssueDescriptionEditorProps > = observer ( ( props ) => {
5657 const {
@@ -191,11 +192,10 @@ export const IssueDescriptionEditor: React.FC<TIssueDescriptionEditorProps> = ob
191192 tabIndex = { getIndex ( "description_html" ) }
192193 placeholder = { getDescriptionPlaceholder }
193194 searchMentionCallback = { async ( payload ) =>
194- await projectService . searchEntity (
195- workspaceSlug ?. toString ( ) ?? "" ,
196- projectId ?. toString ( ) ?? "" ,
197- payload
198- )
195+ await workspaceService . searchEntity ( workspaceSlug ?. toString ( ) ?? "" , {
196+ ...payload ,
197+ project_id : projectId ?. toString ( ) ?? "" ,
198+ } )
199199 }
200200 containerClassName = "pt-3 min-h-[120px]"
201201 uploadFile = { async ( file ) => {
0 commit comments