diff --git a/assets/javascripts/discourse-user-notes/lib/user-notes.js b/assets/javascripts/discourse-user-notes/lib/user-notes.js index 1ea8f00..e8e1dbc 100644 --- a/assets/javascripts/discourse-user-notes/lib/user-notes.js +++ b/assets/javascripts/discourse-user-notes/lib/user-notes.js @@ -1,8 +1,8 @@ import UserNotesModal from "../../discourse/components/modal/user-notes"; -import { getOwner } from "discourse-common/lib/get-owner"; +import { getOwnerWithFallback } from "discourse-common/lib/get-owner"; export function showUserNotes(store, userId, callback, opts) { - const modal = getOwner(this).lookup("service:modal"); + const modal = getOwnerWithFallback(this).lookup("service:modal"); opts = opts || {}; return store.find("user-note", { user_id: userId }).then((model) => {