DEV: refactor to use getOwnerWithFallback instead of getOwner

This commit is contained in:
Kelvin Tan 2023-11-23 12:08:29 +08:00
parent b0f92d9e82
commit e9f6566474
No known key found for this signature in database
GPG Key ID: 49C85DCE965C53EF
1 changed files with 2 additions and 2 deletions

View File

@ -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) => {