Skip to content

Commit

Permalink
Allow mentioning on new work packages
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Jan 29, 2024
1 parent d9dc9ae commit 60349ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mentions/user-mentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export function userMentions(queryText) {
return [];
}

const workPackageId = getOPHelper(editor, 'idFromLink')(resource.href);
const url = getOPPath(editor).api.v3.principals(workPackageId, queryText) + '&select=elements/_type,elements/id,elements/name';
const url = getOPPath(editor).api.v3.principals(resource, queryText) + '&select=elements/_type,elements/id,elements/name';
const pluginContext = getPluginContext(editor);
const base = window.OpenProject.urlRoot;

Expand Down

0 comments on commit 60349ea

Please sign in to comment.